annotate configure @ 2216:352d35ff1c82

[xemacs-hg @ 2004-08-13 20:55:31 by adrian] A small patch to config.guess to detect the PlayStation2 <16667.42748.6448.605562@jin.myrkraverk.com>
author adrian
date Fri, 13 Aug 2004 20:55:31 +0000
parents 646a9dd3e204
children 702b5727498a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1 #! /bin/sh
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3 #### Configuration script for XEmacs. Largely divergent from FSF.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4 #### Guess values for system-dependent variables and create Makefiles.
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
5 #### Generated automatically using autoconf version 2.13
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
1332
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
9 #### Copyright (C) 1995, 1996, 2002, 2003 Ben Wing.
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
10 #### Copyright (C) 2000, 2001 Martin Buchholz.
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ### Don't edit this script!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ### This script was automatically generated by the `autoconf' program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ### from the file `./configure.in'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ### To rebuild it, execute the command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ### autoconf
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
18 ### in the this directory. You must have autoconf version 2.13 or later.
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ### This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ### XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ### under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ### the Free Software Foundation; either version 2, or (at your
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ### option) any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ### XEmacs is distributed in the hope that it will be useful, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ### General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ### You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ### along with XEmacs; see the file COPYING. If not, write to the Free
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ### 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
38 ### For usage, run `./configure --help'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
39 ### For more detailed information on building and installing XEmacs,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
40 ### read the file `INSTALL'.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ### If configure succeeds, it leaves its status in config.status.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
43 ### A log of configuration tests can be found in config.log.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ### If configure fails after disturbing the status quo,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ### config.status is removed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
47 ac_help="$ac_help
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
48 --with-x use the X Window System"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
49
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
50
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
51
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
52 if test -n "$ZSH_VERSION"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
58 elif test -n "$BASH_VERSION"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
59 set -o posix
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
60 unset CDPATH
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
61 else
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
63 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
64
1916
84785da441f9 [xemacs-hg @ 2004-02-18 12:14:30 by stephent]
stephent
parents: 1889
diff changeset
65 for xe_parse_arg
84785da441f9 [xemacs-hg @ 2004-02-18 12:14:30 by stephent]
stephent
parents: 1889
diff changeset
66 do
1259
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
67 case $xe_parse_arg in
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
68 --srcdir) (echo "$progname: Usage error:"
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
69 echo " " "The \`--srcdir' option requires a string value."
1259
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
70 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
71 --srcdir=*) srcdir=`echo $xe_parse_arg | sed -e 's/--srcdir=//'` ;;
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
72 *) ;;
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
73 esac
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
74 done
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
75
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
76 exec_prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
77 host=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
78 no_create=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
79 nonopt=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
80 no_recursion=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
81 prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
82 program_prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
83 program_suffix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
84 program_transform_name=s,x,x,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
85 silent=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
86 site=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
87 target=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
88 verbose=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
89 x_includes=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
90 x_libraries=NONE
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
91
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
92 subdirs=
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
93 MFLAGS=
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
94 MAKEFLAGS=
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
95 SHELL=${CONFIG_SHELL-/bin/sh}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
96 ac_max_here_lines=12
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
97
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
98 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
99
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
100 # File descriptor usage:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
101 # 0 standard input
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
102 # 1 file creation
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
103 # 2 errors and warnings
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
104 # 3 some systems may open it to /dev/tty
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
105 # 4 used on the Kubota Titan
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
106 # 6 checking for... messages and results
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
107 # 5 compiler messages saved in config.log
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
108 if test "$silent" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
109 exec 6>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
110 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
111 exec 6>&1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
112 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
113 exec 5>./config.log
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
114
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
115 echo "\
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
116 This file contains any messages produced by compilers while
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
117 running configure, to aid debugging if configure makes a mistake.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
118 " 1>&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
119
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
120 # Strip out --no-create and --no-recursion so they do not pile up.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
121 # Also quote any args containing shell metacharacters.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
122 ac_configure_args=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
123 for ac_arg
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
124 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
125 case "$ac_arg" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
127 | --no-cr | --no-c) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
130 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
131 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
132 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
133 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
134 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
135
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
136 # NLS nuisances.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
137 # Only set these to C if already set. These must not be set unconditionally
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
138 # because not all systems understand e.g. LANG=C (notably SCO).
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
139 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
140 # Non-C LC_CTYPE values break the ctype check.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
141 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
142 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
143 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
144 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
145
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
147 rm -rf conftest* confdefs.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
148 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
149 echo > confdefs.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
150
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
151 # A filename unique to this package, relative to the directory that
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
152 # configure is in, which we can look for to find out if srcdir is correct.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
153 ac_unique_file=src/lisp.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
154
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
155 # Find the source files, if location was not specified.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
156 if test -z "$srcdir"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
157 ac_srcdir_defaulted=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
158 # Try the directory containing this script, then its parent.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
159 ac_prog=$0
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
160 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
161 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
162 srcdir=$ac_confdir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
163 if test ! -r $srcdir/$ac_unique_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
164 srcdir=..
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
165 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
166 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
167 ac_srcdir_defaulted=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
168 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
169 if test ! -r $srcdir/$ac_unique_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
170 if test "$ac_srcdir_defaulted" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
171 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
172 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
173 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
174 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
175 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
176 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
177
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
178 # Prefer explicitly selected file to automatically selected ones.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
179 if test -z "$CONFIG_SITE"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
180 if test "x$prefix" != xNONE; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
182 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
184 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
185 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
186 for ac_site_file in $CONFIG_SITE; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
187 if test -r "$ac_site_file"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
188 echo "loading site script $ac_site_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
189 . "$ac_site_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
190 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
191 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
192
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
193
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
194 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
195 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
196 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
197 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
198 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
199 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
200 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
201 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
202
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
203 ac_exeext=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
204 ac_objext=o
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
205 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
206 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
207 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
208 ac_n= ac_c='
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
209 ' ac_t=' '
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
210 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
211 ac_n=-n ac_c= ac_t=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
212 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
213 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
214 ac_n= ac_c='\c' ac_t=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
215 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
216
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
217
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
218
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 progname="`echo $0 | sed 's:^\./\./:\./:'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
221
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
222 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
223 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
224
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 prefix='/usr/local'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 exec_prefix='${prefix}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 bindir='${exec_prefix}/bin'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 datadir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 statedir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 libdir='${exec_prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 mandir='${prefix}/man/man1'
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
232 inststaticdir='${PROGNAME}'
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
233 instvardir='${PROGNAME}-${version}'
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
234 infodir='${datadir}/${instvardir}/info'
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
235 infopath=''
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
236 install_pp=''
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
237 lispdir='${datadir}/${instvardir}/lisp'
670
12095b04a9b6 [xemacs-hg @ 2001-09-29 08:02:03 by ben]
ben
parents: 665
diff changeset
238 moduledir='${libdir}/${instvardir}/${configuration}/modules'
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
239 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
670
12095b04a9b6 [xemacs-hg @ 2001-09-29 08:02:03 by ben]
ben
parents: 665
diff changeset
240 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
241 package_path=''
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
242 etcdir='${datadir}/${instvardir}/etc'
670
12095b04a9b6 [xemacs-hg @ 2001-09-29 08:02:03 by ben]
ben
parents: 665
diff changeset
243 archlibdir='${libdir}/${instvardir}/${configuration}'
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
244 docdir='${archlibdir}'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
245 with_netinstall="no"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
246 with_prefix='yes'
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
247 with_site_lisp='no'
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
248 with_site_modules='yes'
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
249 need_modules_common=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 with_menubars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 with_scrollbars=''
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
252 with_widgets=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 with_dialogs=''
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
254 cpp='' cppflags='' libs='' ldflags=''
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
255 extra_includes=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 dynamic=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 with_x11=''
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
258 with_msw=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 rel_alloc='default'
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
260 with_system_malloc='default'
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
261 with_dlmalloc='default'
1464
b02bdcffb55f [xemacs-hg @ 2003-05-08 16:06:15 by stephent]
stephent
parents: 1462
diff changeset
262 with_native_sound=''
b02bdcffb55f [xemacs-hg @ 2003-05-08 16:06:15 by stephent]
stephent
parents: 1462
diff changeset
263 with_nas_sound=''
b02bdcffb55f [xemacs-hg @ 2003-05-08 16:06:15 by stephent]
stephent
parents: 1462
diff changeset
264 with_esd_sound='no'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 native_sound_lib=''
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
266 with_gtk='no'
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
267 with_gnome='no'
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
268 use_assertions="yes"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
269 with_toolbars=""
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
270 with_tty=""
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
271 use_union_type="no"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
272 with_dnet=""
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
273 use_number_lib="no"
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
274 pdump=""
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
275 with_dragndrop_default="no"
708
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
276 with_ipv6_cname="no"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
278
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 arguments="$@"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
281 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 quoted_arguments=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 for i in "$@"; do
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
284 case "$i" in
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
286 | --no-cr | --no-c) ;;
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
287 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
288 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
289 *)
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
290 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
291 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
292 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
295 while test $# != 0; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 arg="$1"; shift
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
297 case "$arg" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
298 --no-create|--no-recursion) ;;
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
299 --srcdir=*) ;; -* )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
300 case "$arg" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 -*=*)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
302 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
303 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 valomitted=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
306 -*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
307 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
308 val="yes" valomitted=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
312 optname="$opt"
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
313 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
314
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
315 case "${valomitted}-${opt}" in yes-without_* )
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
316 opt=`echo $opt | sed 's/without/with/'`
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
317 valomitted="no" val="no" ;;
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
318 esac
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
319
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
320 case "$opt" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
321
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
322 with_site_lisp | \
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
323 with_prefix | \
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
324 with_site_modules | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
325 with_x | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
326 with_x11 | \
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
327 with_gtk | \
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
328 with_gnome | \
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
329 with_msw | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
330 with_gcc | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
331 dynamic | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
332 with_ncurses | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
333 with_dnet | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
334 with_socks | \
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
335 with_dragndrop | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
336 with_cde | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
337 with_offix | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
338 with_gpm | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
339 with_xpm | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
340 with_xface | \
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
341 with_gif | \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
342 with_jpeg | \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
343 with_png | \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
344 with_tiff | \
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
345 with_zlib | \
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
346 with_wmcommand | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
347 with_xmu | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
348 with_purify | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
349 with_quantify | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
350 with_toolbars | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
351 with_tty | \
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
352 with_xfs | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
353 with_mule | \
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
354 with_default_eol_detection | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
355 with_canna | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
356 with_wnn | \
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
357 with_wnn6 | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
358 with_workshop | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
359 with_sparcworks | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
360 with_tooltalk | \
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
361 with_ldap | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
362 with_postgresql | \
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
363 with_pop | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
364 with_kerberos | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
365 with_hesiod | \
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
366 with_dnet | \
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
367 with_infodock | \
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
368 with_netinstall | \
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
369 with_ipv6_cname | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
370 external_widget | \
925
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
371 use_kkcc | \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
372 verbose | \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
373 extra_verbose | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
374 usage_tracking | \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
375 use_union_type | \
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
376 pdump | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
377 debug | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
378 use_assertions | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
379 memory_usage_stats | \
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
380 with_clash_detection | \
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
381 with_modules | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
382 quick_build )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
383 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 y | ye | yes ) val=yes ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
385 n | no ) val=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
386 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
387 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
388 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 esac
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
390 eval "$opt=\"$val\"" ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
391
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
392
1259
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
393 compiler | \
596
cdb192350f65 [xemacs-hg @ 2001-06-01 04:40:34 by martinb]
martinb
parents: 594
diff changeset
394 xemacs_compiler | \
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
395 cflags | \
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
396 cflags_warning | \
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
397 cpp | \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
398 cppflags | \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
399 libs | \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
400 ldflags | \
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
401 cache_file | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
402 native_sound_lib| \
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
403 site_lisp | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
404 x_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
405 x_libraries | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
406 site_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
407 site_libraries | \
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
408 site_prefixes | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
409 site_runtime_libraries )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
410 if test "$valomitted" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
411 if test "$#" = 0 ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
412 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
413 echo " " "The \`--$optname' option requires a value."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
414 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
418 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
421 rel_alloc | \
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
422 with_dlmalloc | \
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
423 with_debug_malloc | use_debug_malloc | \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
424 with_system_malloc | use_system_malloc )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
425 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 n | no ) val=no ;;
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
428 d | de | def | defa | defau | defaul | default ) val=default ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
429 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
430 echo " " "The \`--$optname' option requires one of these values:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
431 \`yes', \`no', or \`default'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
432 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 esac
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
434 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
435 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
438 "with_database" )
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
439 with_database_berkdb=no
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
440 with_database_dbm=no
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
441 with_database_gdbm=no
300
3cc9f0ebfbd1 Import from CVS: tag r21-0b48
cvs
parents: 298
diff changeset
442 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
443 case "$x" in
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
444 no ) ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
445 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
446 d | db | dbm ) with_database_dbm=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
447 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
448 * ) (echo "$progname: Usage error:"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
449 echo " " "The \`--$optname' option value
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
450 must be either \`no' or a comma-separated list
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
451 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
452 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
453 esac
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
454 done
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
455 if test "$with_database_dbm" = "yes" -a \
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
456 "$with_database_gdbm" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
457 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
458 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
459 with the \`--$optname' option."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
460 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
462 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
464 "with_sound" )
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
465 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
466 case "$x" in
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
467 n | no | non | none ) new_sdefault=no ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
468 a | al | all | both ) new_sdefault=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
469
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
470 native ) with_native_sound=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
471 nonative ) with_native_sound=no ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
472
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
473 nas ) with_nas_sound=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
474 nonas ) with_nas_sound=no ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
475
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
476 esd ) with_esd_sound=yes ;;
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
477 noesd ) with_esd_sound=no ;;
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
478
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
479 * ) bogus_sound=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
480 esac
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
481 if test "$bogus_sound" -o \
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
482 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
483 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
484 (echo "$progname: Usage error:"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
485 echo " " "Valid types for the \`--$optname' option are:
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
486 $types.
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
487 Option \`all' or \`none' must be first in the list.
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
488 The default is to autodetect native and NAS sound support."
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
489 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
490 elif test -n "$new_sdefault" ; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
491 with_native_sound=$new_sdefault
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
492 with_nas_sound=$new_sdefault
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
493 with_esd_sound=$new_sdefault
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
494 new_sdefault= # reset this
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
495 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
496 sound_notfirst=true
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
497 done
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
500 "with_athena" )
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
501 case "$val" in
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
502 xa | xaw ) val=xaw ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
503 3 | 3d | xaw3d ) val=3d ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
504 ne | nex | next | naxtaw) val=next ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
505 9 | 95 | xaw95 ) val=95 ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
506 xp | xpm | xawxpm ) val=xpm ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
507 * ) (echo "$progname: Usage error:"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
508 echo " " "The \`--$optname' option must have one of these values:
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
509 \`xaw', \`3d', \`next', \`95', or \`xpm'."
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
510 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
511 esac
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
512 eval "$opt=\"$val\""
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
513 ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
514
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
515 "with_xim" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
516 case "$val" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
517 y | ye | yes ) val=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
518 n | no | non | none ) val=no ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
519 x | xl | xli | xlib ) val=xlib ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
520 m | mo | mot | moti | motif ) val=motif ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
521 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
522 echo " " "The \`--$optname' option must have one of these values:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
523 \`motif', \`xlib', \`yes', or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
524 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
526 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
529 "mail_locking" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
530 case "$val" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
531 lockf ) val=lockf ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
532 flock ) val=flock ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
533 file | dot ) val=file ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
534 locking ) val=locking ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
535 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
536 echo " " "The \`--$optname' option must have one of these values:
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
537 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
538 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
539 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
540 eval "$opt=\"$val\""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
541 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
542
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
543 "use_number_lib" )
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
544 case "$val" in
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
545 gmp ) val=gmp ;;
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
546 mp ) val=mp ;;
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
547 no|non|none ) val=no ;;
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
548 * ) (echo "$progname: Usage error:"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
549 echo " " "The \`--$optname' option must have one of these values:
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
550 \`gmp', \`mp', or \`no'."
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
551 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
552 esac
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
553 eval "$opt=\"$val\""
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
554 ;;
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
555
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
556 "error_checking" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
557
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
558 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
559 case "$x" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
560 n | no | non | none ) new_default=no ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 a | al | all ) new_default=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563 extents ) error_check_extents=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564 noextents ) error_check_extents=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
566 types ) error_check_types=yes ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
567 notypes ) error_check_types=no ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
568
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
569 text ) error_check_text=yes ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
570 notext ) error_check_text=no ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
572 gc ) error_check_gc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
573 nogc ) error_check_gc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 malloc ) error_check_malloc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 nomalloc ) error_check_malloc=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
577
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
578 byte_code ) error_check_byte_code=yes ;;
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
579 nobyte_code ) error_check_byte_code=no ;;
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
580
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
581 glyphs ) error_check_glyphs=yes ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
582 noglyphs ) error_check_glyphs=no ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
583
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
584 display ) error_check_display=yes ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
585 nodisplay ) error_check_display=no ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
586
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
587 structures ) error_check_structures=yes ;;
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
588 nostructures ) error_check_structures=no ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
589
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 * ) bogus_error_check=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
592 if test "$bogus_error_check" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
593 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
594 if test "$error_check_default" = yes ; then
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
595 types="\`all' (default), \`none', \`noextents', \`notypes', \`notext', \`nogc', \`nomalloc', \`noglyphs', \`nobyte-code', \`nodisplay', \`nostructures'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 else
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
597 types="\`all', \`none' (default), \`extents', \`types', \`text', \`gc', \`malloc', \`glyphs', \`byte-code', \`display', \`structures'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
599 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
600 echo " " "Valid types for the \`--$optname' option are:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
601 $types."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
602 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
603 elif test -n "$new_default" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 error_check_extents=$new_default
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
605 error_check_types=$new_default
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
606 error_check_text=$new_default
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607 error_check_gc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 error_check_malloc=$new_default
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
609 error_check_byte_code=$new_default
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
610 error_check_glyphs=$new_default
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
611 error_check_display=$new_default
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
612 error_check_structures=$new_default
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613 new_default= # reset this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 echeck_notfirst=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
619 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
1349
2e6e691f6649 [xemacs-hg @ 2003-03-09 17:23:50 by scop]
scop
parents: 1332
diff changeset
620 mandir | infodir | infopath | lispdir | etcdir | \
867
804517e16990 [xemacs-hg @ 2002-06-05 09:54:39 by ben]
ben
parents: 853
diff changeset
621 archlibdir | docdir | package_path | moduledir )
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
622 if test "$valomitted" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
623 if test "$#" = 0; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
624 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
625 echo " " "The \`--$optname' option requires a value."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
626 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
627 fi
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
628 val="$1"; shift
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
630 eval "$opt=\"$val\""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
631
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
632 case "$opt" in
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
633 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
634 Defining EXEC_PREFIX_USER_DEFINED
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
635 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
636 cat >> confdefs.h <<\EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
637 #define EXEC_PREFIX_USER_DEFINED 1
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
638 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
639 }
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
640 ;;
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
641 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
642 Defining LISPDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
643 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
644 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
645 #define LISPDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
646 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
647 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
648 ;;
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
649 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
650 Defining SITELISPDIR_USER_DEFINED
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
651 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
652 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
653 #define SITELISPDIR_USER_DEFINED 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
654 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
655 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
656 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
657 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
658 Defining MODULEDIR_USER_DEFINED
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
659 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
660 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
661 #define MODULEDIR_USER_DEFINED 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
662 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
663 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
664 ;;
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
665 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
666 Defining ETCDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
667 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
668 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
669 #define ETCDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
670 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
671 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
672 ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
673 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
674 Defining INFODIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
675 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
676 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
677 #define INFODIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
678 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
679 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
680 ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
681 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
682 Defining INFOPATH_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
683 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
684 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
685 #define INFOPATH_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
686 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
687 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
688 ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
689 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
690 Defining PACKAGE_PATH_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
691 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
692 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
693 #define PACKAGE_PATH_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
694 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
695 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
696 ;;
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
697 datadir )
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
698 { test "$extra_verbose" = "yes" && cat << \EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
699 Defining INFODIR_USER_DEFINED
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
700 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
701 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
702 #define INFODIR_USER_DEFINED 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
703 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
704 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
705
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
706 { test "$extra_verbose" = "yes" && cat << \EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
707 Defining LISPDIR_USER_DEFINED
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
708 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
709 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
710 #define LISPDIR_USER_DEFINED 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
711 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
712 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
713
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
714 { test "$extra_verbose" = "yes" && cat << \EOF
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
715 Defining MODULEDIR_USER_DEFINED
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
716 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
717 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
718 #define MODULEDIR_USER_DEFINED 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
719 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
720 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
721
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
722 { test "$extra_verbose" = "yes" && cat << \EOF
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
723 Defining ETCDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
724 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
725 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
726 #define ETCDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
727 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
728 }
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
729
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
730 { test "$extra_verbose" = "yes" && cat << \EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
731 Defining DOCDIR_USER_DEFINED
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
732 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
733 cat >> confdefs.h <<\EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
734 #define DOCDIR_USER_DEFINED 1
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
735 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
736 }
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
737
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
738 { test "$extra_verbose" = "yes" && cat << \EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
739 Defining ARCHLIBDIR_USER_DEFINED
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
740 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
741 cat >> confdefs.h <<\EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
742 #define ARCHLIBDIR_USER_DEFINED 1
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
743 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
744 }
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
745 ;;
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
746 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
747 Defining DOCDIR_USER_DEFINED
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
748 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
749 cat >> confdefs.h <<\EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
750 #define DOCDIR_USER_DEFINED 1
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
751 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
752 }
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
753 ;;
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
754 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
755 Defining ARCHLIBDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
756 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
757 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
758 #define ARCHLIBDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
759 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
760 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
761 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
762 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
763 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
765 "no_create" ) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
766
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
767 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
768
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
769 "with_menubars" | \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
770 "with_scrollbars" | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
771 "with_dialogs" | \
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
772 "with_widgets" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
773 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
774 l | lu | luc | luci | lucid ) val=lucid ;;
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
775 mo | mot | moti | motif ) val=motif ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
776 a | at | ath | athe | athen | athena ) val=athena ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
777 n | no | non | none ) val=no ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
778 y | ye | yes ) val=yes ;;
726
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
779 "") val=yes ;;
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
780 g | gt | gtk ) val=gtk ;;
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
781 ms | msw ) val=msw ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
782 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
783 echo " " "The \`--$optname' option must have one of these values:
585
5ce8d1ac7bde [xemacs-hg @ 2001-05-29 04:21:30 by martinb]
martinb
parents: 582
diff changeset
784 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
785 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
786 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
787 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
788 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
789
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
790 "use_minimal_tagbits" | \
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
791 "use_indexed_lrecord_implementation" | \
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
792 "run_in_place" | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
793 "const_is_losing" | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
794 "with_gnu_make" )
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
795 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
796 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
797
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
798 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
799 echo " " "Unrecognized option: $arg"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
800 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
801
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
802 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
803 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
804
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
805 *-*-*) configuration="$arg" ;;
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
806
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
807 *) (echo "$progname: Usage error:"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
808 echo " " "Unrecognized argument: $arg"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
809 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
811 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
812 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
813
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
814
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
815 test -n "$cpp" && CPP="$cpp"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
816 test -n "$cppflags" && CPPFLAGS="$cppflags"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
817 test -n "$libs" && LIBS="$libs"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
818 test -n "$ldflags" && LDFLAGS="$ldflags"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
819
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
820 eval set x "$quoted_arguments"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
822 test "$extra_verbose" = "yes" && verbose=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
823
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
824 test -n "$with_x" && with_x11="$with_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
825
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
826 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
827 test "$with_system_malloc" = "default" && with_system_malloc=yes
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
828 fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
829
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
830
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
831
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
832 if test "$with_cde $with_tooltalk" = "yes no"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
833 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
834 echo " " "--with-cde requires --with-tooltalk"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
835 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
836 elif test "$with_tooltalk" = "no" ; then with_cde=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
837 elif test "$with_cde" = "yes"; then with_tooltalk=yes
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
838 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
839
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
840
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
841 if test -z "$configuration"; then
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
842 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
843 if test -z "$configuration"; then
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
844 (echo "$progname: Usage error:"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
845 echo " " "XEmacs has not been ported to this host type.
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
846 Try explicitly specifying the CONFIGURATION when rerunning configure."
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
847 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
848 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
849 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
850
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
851 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
852 echo "configure:853: checking whether ln -s works" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
853
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
854 rm -f conftestdata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
855 if ln -s X conftestdata 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
856 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
857 rm -f conftestdata
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
858 ac_cv_prog_LN_S="ln -s"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
859 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
860 ac_cv_prog_LN_S=ln
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
861 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
862 LN_S="$ac_cv_prog_LN_S"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
863 if test "$ac_cv_prog_LN_S" = "ln -s"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
864 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
865 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
866 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
867 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
868
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
869
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
870 for dir in lisp etc man info tests; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
871 if test ! -d "$dir" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
872 echo Making symbolic link to "$srcdir/$dir"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
873 ${LN_S} "$srcdir/$dir" "$dir"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
874 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
875 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
876
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
877
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
878 absolute_pwd="`pwd`";
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
879 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
880 then blddir="$PWD"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
881 else blddir="$absolute_pwd"; if test -d "/net"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
882 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
883 blddir=`echo "$blddir" | \
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
884 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
885 fi
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
886 fi
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
887
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
888
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
889 case "$srcdir" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
890 /* ) ;;
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
891 . ) srcdir="$blddir" ;;
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
892 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
893 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
894 srcdir=`echo "$srcdir" | \
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
895 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
896 fi ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
897 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
898
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
899 if test `pwd` != `sh -c cd $srcdir && pwd` \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
900 && test -f "$srcdir/src/config.h"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
901 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
902 echo " as a build directory right now; it has been configured in its own"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
903 echo " right. To configure in another directory as well, you MUST"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
904 echo " use GNU make. If you do not have GNU make, then you must"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
905 echo " now do \`make distclean' in $srcdir,"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
906 echo " and then run $progname again.") >&2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907 extrasub='/^VPATH[ ]*=/c\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
908 vpath %.c $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
909 vpath %.h $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
910 vpath %.y $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
911 vpath %.l $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
912 vpath %.s $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
913 vpath %.in $(srcdir)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
914 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
915
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
916 . "$srcdir/version.sh" || exit 1;
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
917 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
918 : "${extra_verbose=$beta}"
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
919 version="${emacs_major_version}.${emacs_minor_version}"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
920 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
921 Defining EMACS_MAJOR_VERSION = $emacs_major_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
922 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
923 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
924 #define EMACS_MAJOR_VERSION $emacs_major_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
925 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
926 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
927
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
928 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
929 Defining EMACS_MINOR_VERSION = $emacs_minor_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
930 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
931 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
932 #define EMACS_MINOR_VERSION $emacs_minor_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
933 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
934 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
935
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
936 if test -n "$emacs_beta_version" ; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
937 if test "$beta" = "yes"; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
938 version="${version}-b${emacs_beta_version}"
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
939 { test "$extra_verbose" = "yes" && cat << EOF
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
940 Defining EMACS_BETA_VERSION = $emacs_beta_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
941 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
942 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
943 #define EMACS_BETA_VERSION $emacs_beta_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
944 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
945 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
946
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
947 else
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
948 version="${version}.${emacs_beta_version}"
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
949 { test "$extra_verbose" = "yes" && cat << EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
950 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
951 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
952 cat >> confdefs.h <<EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
953 #define EMACS_PATCH_LEVEL $emacs_beta_version
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
954 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
955 }
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
956
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
957 fi
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
958 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
959 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
960 Defining XEMACS_CODENAME = "$xemacs_codename"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
961 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
962 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
963 #define XEMACS_CODENAME "$xemacs_codename"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
964 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
965 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
966
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
967 if test "$xemacs_extra_name" != ""; then
975
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
968 { test "$extra_verbose" = "yes" && cat << EOF
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
969 Defining XEMACS_EXTRA_NAME = "$xemacs_extra_name"
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
970 EOF
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
971 cat >> confdefs.h <<EOF
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
972 #define XEMACS_EXTRA_NAME "$xemacs_extra_name"
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
973 EOF
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
974 }
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
975
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
976 fi
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
977 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
978 Defining EMACS_VERSION = "$version"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
979 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
980 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
981 #define EMACS_VERSION "$version"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
982 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
983 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
984
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
985
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
986 if test "$with_infodock" = "yes"; then
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
987 if test ! -f ../../ID-INSTALL; then
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
988 echo "Cannot build InfoDock without InfoDock sources"
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
989 with_infodock=no
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
990 fi
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
991 fi
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
992
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
993 if test "$with_infodock" = "yes"; then
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
994 { test "$extra_verbose" = "yes" && cat << EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
995 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
996 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
997 cat >> confdefs.h <<EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
998 #define INFODOCK_MAJOR_VERSION $infodock_major_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
999 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1000 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1001
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1002 { test "$extra_verbose" = "yes" && cat << EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1003 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1004 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1005 cat >> confdefs.h <<EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1006 #define INFODOCK_MINOR_VERSION $infodock_minor_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1007 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1008 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1009
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1010 { test "$extra_verbose" = "yes" && cat << EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1011 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1012 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1013 cat >> confdefs.h <<EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1014 #define INFODOCK_BUILD_VERSION $infodock_build_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1015 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1016 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1017
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1018 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1019 PROGNAME=infodock
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1020 CPPFLAGS="$CPPFLAGS -DINFODOCK"
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1021 else
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1022 PROGNAME=xemacs
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1023 fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1024
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1025 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1026 Defining EMACS_PROGNAME = "$PROGNAME"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1027 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1028 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1029 #define EMACS_PROGNAME "$PROGNAME"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1030 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1031 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1032
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1033
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1034 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1035 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1036 Defining ERROR_CHECK_EXTENTS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1037 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1038 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1039 #define ERROR_CHECK_EXTENTS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1040 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1041 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1042
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1043 test "${error_check_types=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1044 Defining ERROR_CHECK_TYPES
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1045 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1046 cat >> confdefs.h <<\EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1047 #define ERROR_CHECK_TYPES 1
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1048 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1049 }
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1050
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1051 test "${error_check_text=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1052 Defining ERROR_CHECK_TEXT
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1053 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1054 cat >> confdefs.h <<\EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1055 #define ERROR_CHECK_TEXT 1
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1056 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1057 }
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1058
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1059 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1060 Defining ERROR_CHECK_GC
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1061 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1062 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1063 #define ERROR_CHECK_GC 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1064 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1065 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1066
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1067 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1068 Defining ERROR_CHECK_MALLOC
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1069 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1070 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1071 #define ERROR_CHECK_MALLOC 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1072 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1073 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1074
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1075 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1076 Defining ERROR_CHECK_BYTE_CODE
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1077 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1078 cat >> confdefs.h <<\EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1079 #define ERROR_CHECK_BYTE_CODE 1
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1080 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1081 }
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1082
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1083 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1084 Defining ERROR_CHECK_GLYPHS
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1085 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1086 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1087 #define ERROR_CHECK_GLYPHS 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1088 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1089 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1090
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1091 test "${error_check_display=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1092 Defining ERROR_CHECK_DISPLAY
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1093 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1094 cat >> confdefs.h <<\EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1095 #define ERROR_CHECK_DISPLAY 1
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1096 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1097 }
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1098
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1099 test "${error_check_structures=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1100 Defining ERROR_CHECK_STRUCTURES
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1101 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1102 cat >> confdefs.h <<\EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1103 #define ERROR_CHECK_STRUCTURES 1
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1104 EOF
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1105 }
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
1106
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1107 if test "${debug:=$beta}" = "yes"; then
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
1108 use_assertions=yes
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
1109 memory_usage_stats=yes
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1110 { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1111 Defining DEBUG_XEMACS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1112 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1113 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1114 #define DEBUG_XEMACS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1115 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1116 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1117
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1118 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1119 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1120 Defining USE_ASSERTIONS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1121 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1122 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1123 #define USE_ASSERTIONS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1124 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1125 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1126
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1127 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1128 Defining MEMORY_USAGE_STATS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1129 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1130 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1131 #define MEMORY_USAGE_STATS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1132 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1133 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1134
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1135
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1136
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1137 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1138 echo "configure:1139: checking "host system type"" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1139 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1140 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1141 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1142 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1143 echo "$ac_t""$configuration" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1144
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1145
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1146
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1147
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1148
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1149 machine='' opsys=''
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1150
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1151 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1152 sparc-*-* ) machine=sparc ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
1153 alpha*-*-* ) machine=alpha ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1154 vax-*-* ) machine=vax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1155 mips-dec-* ) machine=pmax ;;
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1156 mips-sgi-irix6* ) machine=iris6d ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1157 mips-sgi-* ) machine=iris4d ;;
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
1158 mips*-linux ) machine=mips ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1159 romp-ibm-* ) machine=ibmrt ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1160 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1161 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1162 powerpc*-* ) machine=powerpc ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1163 hppa-*-* ) machine=hp800 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1164 m88k-dg-* ) machine=aviion ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1165 m68*-sony-* ) machine=news ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1166 mips-sony-* ) machine=news-risc ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1167 clipper-* ) machine=clipper ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1168 arm* ) machine=arm ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1169 ns32k-* ) machine=ns32000 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1170 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1171
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1172 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1173 *-*-linux* ) opsys=linux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1174 *-*-netbsd* ) opsys=netbsd ;;
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1175 *-*-openbsd* ) opsys=openbsd ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1176 *-*-nextstep* ) opsys=nextstep ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1177 *-*-vms ) opsys=vms ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1178
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1179 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1180 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1181 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1182 *-dec-osf3* ) opsys=decosf3-1 ;;
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
1183 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1184
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1185 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1186 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1187 *-*-ultrix* ) opsys=ultrix4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1188
1300
65c6302e98c8 [xemacs-hg @ 2003-02-14 23:31:47 by youngs]
youngs
parents: 1261
diff changeset
1189 *-*-aix3.1* ) opsys=aix3-1 ;;
65c6302e98c8 [xemacs-hg @ 2003-02-14 23:31:47 by youngs]
youngs
parents: 1261
diff changeset
1190 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
65c6302e98c8 [xemacs-hg @ 2003-02-14 23:31:47 by youngs]
youngs
parents: 1261
diff changeset
1191 *-*-aix3* ) opsys=aix3-2 ;;
65c6302e98c8 [xemacs-hg @ 2003-02-14 23:31:47 by youngs]
youngs
parents: 1261
diff changeset
1192 *-*-aix4.0* ) opsys=aix4 ;;
65c6302e98c8 [xemacs-hg @ 2003-02-14 23:31:47 by youngs]
youngs
parents: 1261
diff changeset
1193 *-*-aix4.1* ) opsys=aix4-1 ;;
65c6302e98c8 [xemacs-hg @ 2003-02-14 23:31:47 by youngs]
youngs
parents: 1261
diff changeset
1194 *-*-aix[4-9]* ) opsys=aix4-2 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1195
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1196 *-gnu* ) opsys=gnu ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1197 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1198 *-*-bsd4.2 ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1199 *-*-bsd4.3 ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1200 *-*-aos4.2 ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1201 *-*-aos* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1202 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1203 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1204 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1205 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1206 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1207 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1208 if test -z "$NON_GNU_CPP" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1209 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1210 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1211 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1212 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1213 opsys=usg5-4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1214 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1215 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1216 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1217
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1218 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1219
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1220 *-*-netbsd* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1221 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1222 i[3-9]86-*-netbsd*) machine=intel386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1223 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1224 machine=hp9000s300 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1225 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1226 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1227 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1228 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1229
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1230 *-*-openbsd* )
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1231 case "${canonical}" in
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1232 i386-*-openbsd*) machine=intel386 ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1233 m68k-*-openbsd*) machine=hp9000s300 ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1234 mipsel-*-openbsd*) machine=pmax ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1235 esac
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1236 ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1237
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1238 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1239 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1240
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1241 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1242 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1243
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1244 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1245
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1246 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1247
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1248 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1249
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1250 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1251
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1252 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1253
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1254 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1255 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1256 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1257
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1258
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1259 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1260
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1261 *-convex-bsd* | *-convex-convexos* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1262 machine=convex opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1263 NON_GNU_CPP="cc -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1264 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1265
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1266 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1267
867
804517e16990 [xemacs-hg @ 2002-06-05 09:54:39 by ben]
ben
parents: 853
diff changeset
1268 *-*-darwin*)
804517e16990 [xemacs-hg @ 2002-06-05 09:54:39 by ben]
ben
parents: 853
diff changeset
1269 opsys=darwin
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
1270 ;;
867
804517e16990 [xemacs-hg @ 2002-06-05 09:54:39 by ben]
ben
parents: 853
diff changeset
1271
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1272 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1273 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1274 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1275 m88k-dg-dgux* ) opsys=dgux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1276
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1277 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1278 m88k-motorola-sysv4* )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1279 machine=delta88k opsys=usg5-4-2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1280 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1281 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1282
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1283 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1284 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1285
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1286 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1287
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1288 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1289 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1290 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1291
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1292 m88k-harris-cxux* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1293 case "`uname -r`" in
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1294 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1295 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1296 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1297 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1298 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1299 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1300 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1301
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1302 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1303
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1304 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1305
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1306 *-hp-hpux* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1307 case "$canonical" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1308 m68* ) machine=hp9000s300 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1309 hppa* ) machine=hp800 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1310 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1311
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1312 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1313 *-hp-hpux7* ) opsys=hpux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1314 *-hp-hpux8* ) opsys=hpux8 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1315 *-hp-hpux9* ) opsys=hpux9 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1316 *-hp-hpux10* ) opsys=hpux10 ;;
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
1317 *-hp-hpux11* ) opsys=hpux11 ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1318 * ) opsys=hpux ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1319 esac
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1320
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1321 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1322 echo " xemacs will be linked with \"strcat.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1323 fi ;; esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1324
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
1325 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
1326 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1327 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1328
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1329 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1330 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1331
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1332 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1333 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1334
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1335 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1336 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1337 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1338 romp-ibm-aos* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1339 romp-ibm-bsd* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1340 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1341
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1342 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1343 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1344
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1345 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1346
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1347 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1348
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1349 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1350
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1351 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1352
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1353 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1354
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1355 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1356
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1357 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1358
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1359 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1360
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1361 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1362
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1363 mips-mips-usg* ) machine=mips4 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1364 mips-mips-riscos4 )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1365 machine=mips4
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1366 NON_GNU_CC="cc -systype bsd43"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1367 NON_GNU_CPP="cc -systype bsd43 -E"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1368 case "$canonical" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1369 mips-mips-riscos4* ) opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1370 mips-mips-riscos5* ) opsys=riscos5 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1371 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1372 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1373 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1374 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1375
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1376 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1377
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1378 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1379
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1380 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1381 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1382
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1383 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1384
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1385 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1386
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1387 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1388
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1389 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1390
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1391 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1392 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1393
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1394 mips-siemens-sysv* | mips-sni-sysv*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1395 machine=mips-siemens opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1396 NON_GNU_CC=/usr/ccs/bin/cc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1397 NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1398 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1399
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1400 mips-nec-sysv*)
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1401 machine=mips-nec
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1402 NON_GNU_CC=/usr/ccs/bin/cc
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1403 NON_GNU_CPP=/usr/ccs/lib/cpp
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1404 ;;
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1405
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1406 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1407 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1408 mips-sgi-irix3.* ) opsys=irix3-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1409 mips-sgi-irix4.* ) opsys=irix4-0 ;;
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1410 mips-sgi-irix6* ) opsys=irix6-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1411 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1412 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1413 mips-sgi-irix5.* ) opsys=irix5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1414 mips-sgi-irix* ) opsys=irix5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1415
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1416 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1417 *-sony-news* ) opsys=newsos5 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1418
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1419 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1420
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1421 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1422 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1423 m68*-sunos1* ) machine=sun1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1424 m68*-sunos2* ) machine=sun2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1425 m68* ) machine=sun3 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1426 i*86*-sun-sunos[34]* ) machine=sun386 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1427 i*86-*-* ) machine=intel386 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1428 rs6000* ) machine=rs6000 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1429 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1430
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1431 case "$canonical" in *-sunos5*)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1432 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1433 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1434
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1435 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1436 *-sunos4* )
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1437 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1438 : ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1439 *-solaris2* )
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1440 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1441 RANLIB=':' ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1442 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1443
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1444 case "$canonical" in
1692
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
1445 *-solaris* )
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1446 opsys=sol2
1692
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
1447 os_release_major=`uname -r | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\1/'`
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
1448 os_release_minor=`uname -r | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\2/'`
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
1449 case "$os_release_minor" in [0-9])
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
1450 os_release_minor="0${os_release_minor}";;
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
1451 esac
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
1452 os_release="${os_release_major}${os_release_minor}"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1453 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1454 Defining OS_RELEASE = $os_release
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1455 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1456 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1457 #define OS_RELEASE $os_release
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1458 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1459 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1460 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1461
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1462 i*86-*-sunos4* ) opsys=sunos4-0 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1463 *-sunos4.0* ) opsys=sunos4-0 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1464 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1465 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1466 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1467 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1468 *-mach* ) opsys=mach-bsd4-3 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1469 * ) opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1470 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1471
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1472 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1473
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1474 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1475 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1476
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1477 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1478
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1479 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1480 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1481
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1482 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1483
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1484 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1485
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1486 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1487 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1488
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1489 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1490
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1491 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1492
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1493 vax-dec-* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1494 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1495 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1496 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1497 *-mach* ) opsys=mach-bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1498 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1499 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1500
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1501 ns16k-whitechapel-* ) machine=mg1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1502
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1503 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1504
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1505 i[3-9]86-*-* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1506 machine=intel386
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1507 case "$canonical" in
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1508 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1509 *-isc2.2* ) opsys=isc2-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1510 *-isc4.0* ) opsys=isc4-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1511 *-isc4.* ) opsys=isc4-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1512 GCC_TEST_OPTIONS=-posix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1513 NON_GCC_TEST_OPTIONS=-Xp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1514 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1515 *-isc* ) opsys=isc3-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1516 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1517 *-esix* ) opsys=esix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1518 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1519 *-xenix* ) opsys=xenix ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1520 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1521 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1522 *-bsdi4* ) opsys=bsdos4 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1523 *-bsdi3* ) opsys=bsdos3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1524 *-bsdi2.1* ) opsys=bsdos2-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1525 *-bsdi2* ) opsys=bsdos2 ;;
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
1526 *-sco3.2v5* ) opsys=sco5 ;;
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
1527 *-sysv5* ) opsys=sco7 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1528 *-386bsd* ) opsys=386bsd ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1529 *-freebsd* ) opsys=freebsd ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1530 *-nextstep* ) opsys=nextstep ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1531 *-pc-cygwin* ) opsys=cygwin32 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1532 *-pc-mingw* ) opsys=mingw32 ;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1533 test -z "$with_tty" && with_tty="no";;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1534 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1535 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1536
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1537 m68k-*-linux* ) machine=m68k opsys=linux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1538
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1539 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1540
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1541 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1542
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1543 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1544
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1545 if test -r "${srcdir}/src/m/${machine}.h"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1546 machfile="m/${machine}.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1547 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1548 Defining config_machfile = "$machfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1549 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1550 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1551 #define config_machfile "$machfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1552 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1553 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1554
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1555 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1556 echo "XEmacs has no builtin knowledge of \`$machine' machines."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1557 echo "Using configure-time autodetection only."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1558 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1559
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1560 if test -r "${srcdir}/src/s/${opsys}.h"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1561 opsysfile="s/${opsys}.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1562 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1563 Defining config_opsysfile = "$opsysfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1564 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1565 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1566 #define config_opsysfile "$opsysfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1567 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1568 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1569
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1570 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1571 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1572 echo "Using configure-time autodetection only."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1573 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1574
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1575
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1576 if test -z "$pdump"; then
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1577 case "$opsys" in
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
1578 linux* ) pdump=yes ;; darwin ) pdump=yes ;; * ) pdump=no ;;
1161
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1579 esac
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1580 fi
8e95979f01c6 [xemacs-hg @ 2002-12-16 02:32:47 by ben]
ben
parents: 1123
diff changeset
1581
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1582 if test -z "$dynamic"; then
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1583 case "$opsys" in
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
1584 hpux* | sunos4* ) dynamic=no ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1585 *) dynamic=yes ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1586 esac
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1587 fi
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1588 if test "$dynamic" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1589 case "$opsys" in
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1590 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1591 decosf* ) ld_call_shared="-call_shared" ;;
1259
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
1592 darwin ) { test "$extra_verbose" = "yes" && cat << \EOF
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
1593 Defining DLSYM_NEEDS_UNDERSCORE
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
1594 EOF
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
1595 cat >> confdefs.h <<\EOF
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
1596 #define DLSYM_NEEDS_UNDERSCORE 1
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
1597 EOF
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
1598 }
d9c553868a01 [xemacs-hg @ 2003-02-05 10:07:26 by stephent]
stephent
parents: 1202
diff changeset
1599 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1600 esac
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1601 else case "$opsys" in
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
1602 sol2 )
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1603 echo "Static linking is not supported on Solaris 2."
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1604 echo "Rerun configure without specifying --dynamic=no."
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1605 exit 1 ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1606 linux ) ld_call_shared="-Bstatic" ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1607 decosf* ) ld_call_shared="-non_shared" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1608 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1609 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1610
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
1611 case "$opsys" in
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
1612 aix* ) NON_GNU_CC=xlc ;; darwin ) RANLIB="ranlib -c" ;; esac
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1613
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1614 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1615 { test "$extra_verbose" = "yes" && cat << EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1616 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1617 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1618 cat >> confdefs.h <<EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1619 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1620 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1621 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1622
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1623
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1624
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1625 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1626 if test "$with_workshop $with_tooltalk" = "yes no"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1627 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1628 echo " " "--with-workshop requires --with-tooltalk"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1629 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1630 elif test "$with_tooltalk" = "no" ; then with_workshop=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1631 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1632 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1633
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1634 if test "$with_workshop" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1635 { test "$extra_verbose" = "yes" && cat << \EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1636 Defining SUNPRO
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1637 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1638 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1639 #define SUNPRO 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1640 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1641 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1642
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1643 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1644
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1645 if test "$with_clash_detection" != "no"; then
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1646 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1647 Defining CLASH_DETECTION
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1648 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1649 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1650 #define CLASH_DETECTION 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1651 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1652 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1653
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1654 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1655
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1656 test -n "$compiler" && CC="$compiler"
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1657 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1658 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1659
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1660 test "${cflags-unset}" != unset && CFLAGS="$cflags"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1661 if test "${CFLAGS-unset}" != unset
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1662 then cflags_specified=yes;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1663 else cflags_specified=no;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1664 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1665
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
1666 if test "${cflags_warning-unset}" != unset
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
1667 then cflags_warning_specified=yes;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
1668 else cflags_warning_specified=no;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
1669 fi
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
1670
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1671 xe_save_CFLAGS="$CFLAGS"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1672
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1673 # Extract the first word of "gcc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1674 set dummy gcc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1676 echo "configure:1677: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1677
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1678 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1679 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1680 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1682 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1683 for ac_dir in $ac_dummy; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1684 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1685 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1686 ac_cv_prog_CC="gcc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1687 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1688 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1689 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1690 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1691 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1692 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1693 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1694 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1695 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1696 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1697 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1698
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1699 if test -z "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1700 # Extract the first word of "cc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1701 set dummy cc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1703 echo "configure:1704: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1704
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1705 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1706 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1707 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1709 ac_prog_rejected=no
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1710 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1711 for ac_dir in $ac_dummy; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1712 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1713 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1714 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1715 ac_prog_rejected=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1716 continue
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1717 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1718 ac_cv_prog_CC="cc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1719 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1720 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1721 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1722 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1723 if test $ac_prog_rejected = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1724 # We found a bogon in the path, so make sure we never use it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1725 set dummy $ac_cv_prog_CC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1726 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1727 if test $# -gt 0; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1728 # We chose a different compiler from the bogus one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1729 # However, it has the same basename, so the bogon will be chosen
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1730 # first if we set CC to just the basename; use the full file name.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1731 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1732 set dummy "$ac_dir/$ac_word" "$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1733 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1734 ac_cv_prog_CC="$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1735 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1736 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1737 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1738 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1739 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1740 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1741 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1742 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1743 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1744
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1745 if test -z "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1746 case "`uname -s`" in
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1747 *win32* | *WIN32*)
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1748 # Extract the first word of "cl", so it can be a program name with args.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1749 set dummy cl; ac_word=$2
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1751 echo "configure:1752: checking for $ac_word" >&5
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1752
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1753 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1755 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1757 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1758 for ac_dir in $ac_dummy; do
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1759 test -z "$ac_dir" && ac_dir=.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1760 if test -f $ac_dir/$ac_word; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1761 ac_cv_prog_CC="cl"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1762 break
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1763 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1764 done
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1765 IFS="$ac_save_ifs"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1766 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1767 CC="$ac_cv_prog_CC"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1768 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1769 echo "$ac_t""$CC" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1770 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1771 echo "$ac_t""no" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1772 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1773 ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1774 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1775 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1776 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1777 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1778
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1779 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1780 echo "configure:1781: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1781
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1782 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1783 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1784 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
1785 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1786 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1787 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1788 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1789 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1790
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1791 cat > conftest.$ac_ext << EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1792
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1793 #line 1794 "configure"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1794 #include "confdefs.h"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1795
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1796 main(){return(0);}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1797 EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1799 ac_cv_prog_cc_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1800 # If we can't run a trivial program, we are probably using a cross compiler.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1801 if (./conftest; exit) 2>/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1802 ac_cv_prog_cc_cross=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1803 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1804 ac_cv_prog_cc_cross=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1805 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1806 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1807 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1808 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1809 ac_cv_prog_cc_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1810 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1811 rm -fr conftest*
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1812 ac_ext=c
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1813 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1814 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
1815 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1816 ac_cpp='$CPP '"$xe_cppflags"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1817 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1818 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1819 cross_compiling=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1820
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1821 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1822 if test $ac_cv_prog_cc_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1823 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1824 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1825 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1826 echo "configure:1827: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1827 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1828 cross_compiling=$ac_cv_prog_cc_cross
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1829
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1830 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1831 echo "configure:1832: checking whether we are using GNU C" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1832
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1833 cat > conftest.c <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1834 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1835 yes;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1836 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1837 EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1838 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1839 ac_cv_prog_gcc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1840 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1841 ac_cv_prog_gcc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1842 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1843
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1844 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1845
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1846 if test $ac_cv_prog_gcc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1847 GCC=yes
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1848 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1849 GCC=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1850 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1851
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1852 ac_test_CFLAGS="${CFLAGS+set}"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1853 ac_save_CFLAGS="$CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1854 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1855 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1856 echo "configure:1857: checking whether ${CC-cc} accepts -g" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1857
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1858 echo 'void f(){}' > conftest.c
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1859 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1860 ac_cv_prog_cc_g=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1861 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1862 ac_cv_prog_cc_g=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1863 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1864 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1865
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1866
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1867 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1868 if test "$ac_test_CFLAGS" = set; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1869 CFLAGS="$ac_save_CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1870 elif test $ac_cv_prog_cc_g = yes; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1871 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1872 CFLAGS="-g -O2"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1873 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1874 CFLAGS="-g"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1875 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1876 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1877 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1878 CFLAGS="-O2"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1879 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1880 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1881 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1882 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1883
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1884 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1885 CC=${NON_GNU_CC-cc}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1886 # Extract the first word of "gcc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1887 set dummy gcc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1889 echo "configure:1890: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1890
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1891 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1892 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1893 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1895 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1896 for ac_dir in $ac_dummy; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1897 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1898 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1899 ac_cv_prog_CC="gcc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1900 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1901 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1902 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1903 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1904 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1905 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1906 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1907 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1908 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1909 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1910 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1911
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1912 if test -z "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1913 # Extract the first word of "cc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1914 set dummy cc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1916 echo "configure:1917: checking for $ac_word" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1917
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1918 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1919 ac_cv_prog_CC="$CC" # Let the user override the test.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1920 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1922 ac_prog_rejected=no
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1923 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1924 for ac_dir in $ac_dummy; do
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1925 test -z "$ac_dir" && ac_dir=.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1926 if test -f $ac_dir/$ac_word; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1927 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1928 ac_prog_rejected=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1929 continue
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1930 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1931 ac_cv_prog_CC="cc"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1932 break
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1933 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1934 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1935 IFS="$ac_save_ifs"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1936 if test $ac_prog_rejected = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1937 # We found a bogon in the path, so make sure we never use it.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1938 set dummy $ac_cv_prog_CC
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1939 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1940 if test $# -gt 0; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1941 # We chose a different compiler from the bogus one.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1942 # However, it has the same basename, so the bogon will be chosen
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1943 # first if we set CC to just the basename; use the full file name.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1944 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1945 set dummy "$ac_dir/$ac_word" "$@"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1946 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1947 ac_cv_prog_CC="$@"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1948 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1949 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1950 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1951 CC="$ac_cv_prog_CC"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1952 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1953 echo "$ac_t""$CC" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1954 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1955 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1956 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1957
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1958 if test -z "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1959 case "`uname -s`" in
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1960 *win32* | *WIN32*)
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1961 # Extract the first word of "cl", so it can be a program name with args.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1962 set dummy cl; ac_word=$2
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1964 echo "configure:1965: checking for $ac_word" >&5
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1965
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1966 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1968 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1970 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1971 for ac_dir in $ac_dummy; do
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1972 test -z "$ac_dir" && ac_dir=.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1973 if test -f $ac_dir/$ac_word; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1974 ac_cv_prog_CC="cl"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1975 break
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1976 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1977 done
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1978 IFS="$ac_save_ifs"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1979 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1980 CC="$ac_cv_prog_CC"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1981 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1982 echo "$ac_t""$CC" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1983 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1984 echo "$ac_t""no" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1985 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1986 ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1987 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1988 fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1989 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1990 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1991
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1992 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
1993 echo "configure:1994: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1994
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1995 ac_ext=c
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1996 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1997 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
1998 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1999 ac_cpp='$CPP '"$xe_cppflags"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2000 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2001 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2002 cross_compiling=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2003
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2004 cat > conftest.$ac_ext << EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2005
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2006 #line 2007 "configure"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2007 #include "confdefs.h"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2008
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2009 main(){return(0);}
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2010 EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2011 if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2012 ac_cv_prog_cc_works=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2013 # If we can't run a trivial program, we are probably using a cross compiler.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2014 if (./conftest; exit) 2>/dev/null; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2015 ac_cv_prog_cc_cross=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2016 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2017 ac_cv_prog_cc_cross=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2018 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2019 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2020 echo "configure: failed program was:" >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2021 cat conftest.$ac_ext >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2022 ac_cv_prog_cc_works=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2023 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2024 rm -fr conftest*
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2025 ac_ext=c
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2026 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2027 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
2028 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2029 ac_cpp='$CPP '"$xe_cppflags"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2030 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2031 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2032 cross_compiling=no
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2033
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2034 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2035 if test $ac_cv_prog_cc_works = no; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2036 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2037 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2038 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2039 echo "configure:2040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2040 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2041 cross_compiling=$ac_cv_prog_cc_cross
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2042
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2043 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2044 echo "configure:2045: checking whether we are using GNU C" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2045
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2046 cat > conftest.c <<EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2047 #ifdef __GNUC__
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2048 yes;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2049 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2050 EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2051 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2052 ac_cv_prog_gcc=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2053 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2054 ac_cv_prog_gcc=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2055 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2056
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2057 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2058
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2059 if test $ac_cv_prog_gcc = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2060 GCC=yes
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2061 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2062 GCC=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2063 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2064
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2065 ac_test_CFLAGS="${CFLAGS+set}"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2066 ac_save_CFLAGS="$CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2067 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2068 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2069 echo "configure:2070: checking whether ${CC-cc} accepts -g" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2070
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2071 echo 'void f(){}' > conftest.c
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2072 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2073 ac_cv_prog_cc_g=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2074 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2075 ac_cv_prog_cc_g=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2076 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2077 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2078
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2079
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2080 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2081 if test "$ac_test_CFLAGS" = set; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2082 CFLAGS="$ac_save_CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2083 elif test $ac_cv_prog_cc_g = yes; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2084 if test "$GCC" = yes; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2085 CFLAGS="-g -O2"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2086 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2087 CFLAGS="-g"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2088 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2089 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2090 if test "$GCC" = yes; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2091 CFLAGS="-O2"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2092 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2093 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2094 fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2095 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2096
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
2097 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2098 CC=gcc
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2099 # Extract the first word of "gcc", so it can be a program name with args.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2100 set dummy gcc; ac_word=$2
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2102 echo "configure:2103: checking for $ac_word" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2103
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2104 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2105 ac_cv_prog_CC="$CC" # Let the user override the test.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2106 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2108 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2109 for ac_dir in $ac_dummy; do
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2110 test -z "$ac_dir" && ac_dir=.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2111 if test -f $ac_dir/$ac_word; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2112 ac_cv_prog_CC="gcc"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2113 break
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2114 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2115 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2116 IFS="$ac_save_ifs"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2117 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2118 CC="$ac_cv_prog_CC"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2119 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2120 echo "$ac_t""$CC" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2121 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2122 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2123 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2124
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2125 if test -z "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2126 # Extract the first word of "cc", so it can be a program name with args.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2127 set dummy cc; ac_word=$2
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2129 echo "configure:2130: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2130
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2131 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2132 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2133 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2135 ac_prog_rejected=no
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2136 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2137 for ac_dir in $ac_dummy; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2138 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2139 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2140 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2141 ac_prog_rejected=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2142 continue
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2143 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2144 ac_cv_prog_CC="cc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2145 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2146 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2147 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2148 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2149 if test $ac_prog_rejected = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2150 # We found a bogon in the path, so make sure we never use it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2151 set dummy $ac_cv_prog_CC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2152 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2153 if test $# -gt 0; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2154 # We chose a different compiler from the bogus one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2155 # However, it has the same basename, so the bogon will be chosen
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2156 # first if we set CC to just the basename; use the full file name.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2157 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2158 set dummy "$ac_dir/$ac_word" "$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2159 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2160 ac_cv_prog_CC="$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2161 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2162 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2163 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2164 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2165 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2166 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2167 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2168 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2169 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2170
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2171 if test -z "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2172 case "`uname -s`" in
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2173 *win32* | *WIN32*)
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2174 # Extract the first word of "cl", so it can be a program name with args.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2175 set dummy cl; ac_word=$2
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2177 echo "configure:2178: checking for $ac_word" >&5
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2178
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2179 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2181 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2183 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2184 for ac_dir in $ac_dummy; do
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2185 test -z "$ac_dir" && ac_dir=.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2186 if test -f $ac_dir/$ac_word; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2187 ac_cv_prog_CC="cl"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2188 break
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2189 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2190 done
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2191 IFS="$ac_save_ifs"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2192 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2193 CC="$ac_cv_prog_CC"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2194 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2195 echo "$ac_t""$CC" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2196 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2197 echo "$ac_t""no" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2198 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2199 ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2200 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2201 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2202 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2203 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2204
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2205 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2206 echo "configure:2207: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2207
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2208 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2209 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2210 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
2211 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2212 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2213 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2214 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2215 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2216
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2217 cat > conftest.$ac_ext << EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2218
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2219 #line 2220 "configure"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2220 #include "confdefs.h"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2221
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2222 main(){return(0);}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2223 EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2224 if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2225 ac_cv_prog_cc_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2226 # If we can't run a trivial program, we are probably using a cross compiler.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2227 if (./conftest; exit) 2>/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2228 ac_cv_prog_cc_cross=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2229 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2230 ac_cv_prog_cc_cross=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2231 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2232 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2233 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2234 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2235 ac_cv_prog_cc_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2236 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2237 rm -fr conftest*
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2238 ac_ext=c
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2239 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2240 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
2241 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2242 ac_cpp='$CPP '"$xe_cppflags"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2243 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2244 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2245 cross_compiling=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2246
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2247 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2248 if test $ac_cv_prog_cc_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2249 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2250 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2251 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2252 echo "configure:2253: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2253 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2254 cross_compiling=$ac_cv_prog_cc_cross
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2255
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2256 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2257 echo "configure:2258: checking whether we are using GNU C" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2258
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2259 cat > conftest.c <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2260 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2261 yes;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2262 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2263 EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2264 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2265 ac_cv_prog_gcc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2266 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2267 ac_cv_prog_gcc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2268 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2269
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2270 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2271
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2272 if test $ac_cv_prog_gcc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2273 GCC=yes
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2274 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2275 GCC=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2276 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2277
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2278 ac_test_CFLAGS="${CFLAGS+set}"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2279 ac_save_CFLAGS="$CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2280 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2281 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2282 echo "configure:2283: checking whether ${CC-cc} accepts -g" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2283
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2284 echo 'void f(){}' > conftest.c
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2285 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2286 ac_cv_prog_cc_g=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2287 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2288 ac_cv_prog_cc_g=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2289 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2290 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2291
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2292
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2293 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2294 if test "$ac_test_CFLAGS" = set; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2295 CFLAGS="$ac_save_CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2296 elif test $ac_cv_prog_cc_g = yes; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2297 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2298 CFLAGS="-g -O2"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2299 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2300 CFLAGS="-g"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2301 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2302 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2303 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2304 CFLAGS="-O2"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2305 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2306 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2307 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2308 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2309
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2310 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2311 CFLAGS="$xe_save_CFLAGS"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2312
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2313 if test "$GCC" = "yes"; then
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2314 cat > conftest.$ac_ext <<EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2315 #line 2316 "configure"
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2316 #include "confdefs.h"
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2317 int main () {
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2318 #if __GNUC__ >= 3
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2319 return 11;
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2320 #else
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2321 return 0;
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2322 #endif
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2323 }
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2324 EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2326 then
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2327 :
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2328 else
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2329 conftest_rc="$?"
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2330 echo "configure: failed program was:" >&5
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2331 cat conftest.$ac_ext >&5
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2332 rm -fr conftest*
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2333 case "$conftest_rc" in
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2334 11) echo "You appear to be using GCC version 3 or above."; __GCC3=yes ;;
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2335 esac
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2336 fi
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2337 rm -fr conftest*
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2338 fi
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2339
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
2340
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2341
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2342 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2343 : ${XEMACS_CC:="$CC"}
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2344
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2345
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
2346 test -n "$CPP" -a -d "$CPP" && CPP=
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
2347
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
2348 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2349
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2350 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2351 echo "configure:2352: checking how to run the C preprocessor" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2352 # On Suns, sometimes $CPP names a directory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2353 if test -n "$CPP" && test -d "$CPP"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2354 CPP=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2355 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2356 if test -z "$CPP"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2357
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2358 # This must be in double quotes, not single quotes, because CPP may get
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2359 # substituted into the Makefile and "${CC-cc}" will confuse make.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2360 CPP="${CC-cc} -E"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2361 # On the NeXT, cc -E runs the code through the compiler's parser,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2362 # not just through cpp.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2363 cat > conftest.$ac_ext <<EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2364 #line 2365 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2365 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2366 #include <assert.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2367 Syntax Error
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2368 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2370 { (eval echo configure:2371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2372 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2373 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2374 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2375 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2376 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2377 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2378 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2379 CPP="${CC-cc} -E -traditional-cpp"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2380 cat > conftest.$ac_ext <<EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2381 #line 2382 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2382 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2383 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2384 Syntax Error
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2385 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2387 { (eval echo configure:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2389 if test -z "$ac_err"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2390 :
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2391 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2392 echo "$ac_err" >&5
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2393 echo "configure: failed program was:" >&5
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2394 cat conftest.$ac_ext >&5
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2395 rm -rf conftest*
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2396 CPP="${CC-cc} -nologo -E"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2397 cat > conftest.$ac_ext <<EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2398 #line 2399 "configure"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2399 #include "confdefs.h"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2400 #include <assert.h>
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2401 Syntax Error
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2402 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2404 { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2406 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2407 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2408 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2409 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2410 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2411 cat conftest.$ac_ext >&5
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2412 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2413 CPP=/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2414 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2415 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2416 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2417 rm -f conftest*
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2418 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2419 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2420 ac_cv_prog_CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2421 CPP="$ac_cv_prog_CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2422 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2423 ac_cv_prog_CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2424 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2425 echo "$ac_t""$CPP" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2426
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2427
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2428
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2429 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2430 echo "configure:2431: checking for AIX" >&5
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2431 cat > conftest.$ac_ext <<EOF
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2432 #line 2433 "configure"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2433 #include "confdefs.h"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2434 #ifdef _AIX
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2435 yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2436 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2437
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2438 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2440 egrep "yes" >/dev/null 2>&1; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2441 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2442 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2443 Defining _ALL_SOURCE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2444 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2445 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2446 #define _ALL_SOURCE 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2447 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2448 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2449
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2450 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2451 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2452 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2453 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2454 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2455
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2456
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
2457
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
2458 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2459 echo "configure:2460: checking for GNU libc" >&5
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2460 cat > conftest.$ac_ext <<EOF
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2461 #line 2462 "configure"
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
2462 #include "confdefs.h"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2463 #include <features.h>
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2464 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2465
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2466 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2467 #error Not a GNU libc system :-(
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2468 ******* ======= ******** &&&&&&&&
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2469 #endif
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2470
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2471 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2472 EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2473 if { (eval echo configure:2474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2474 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2475 have_glibc=yes
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2476 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2477 echo "configure: failed program was:" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2478 cat conftest.$ac_ext >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2479 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2480 have_glibc=no
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2481 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2482 rm -f conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2483 echo "$ac_t""$have_glibc" 1>&6
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2484 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2485 Defining _GNU_SOURCE
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2486 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2487 cat >> confdefs.h <<\EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2488 #define _GNU_SOURCE 1
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2489 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2490 }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2491
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2492
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2493 case "$opsys" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2494 sol2)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2495 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2496 Defining __EXTENSIONS__
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2497 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2498 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2499 #define __EXTENSIONS__ 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2500 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2501 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2502
1692
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
2503 if test "$os_release" -ge 505; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2504 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2505 Defining _XOPEN_SOURCE = 500
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2506 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2507 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2508 #define _XOPEN_SOURCE 500
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2509 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2510 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2511
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2512 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2513 Defining _XOPEN_SOURCE_EXTENDED
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2514 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2515 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2516 #define _XOPEN_SOURCE_EXTENDED 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2517 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2518 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2519
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2520 fi ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2521 linux)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2522 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2523 Defining _POSIX_C_SOURCE = 199506L
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2524 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2525 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2526 #define _POSIX_C_SOURCE 199506L
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2527 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2528 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2529
1955
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2530 { test "$extra_verbose" = "yes" && cat << \EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2531 Defining _XOPEN_SOURCE = 500
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2532 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2533 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2534 #define _XOPEN_SOURCE 500
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2535 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2536 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2537
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2538 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2539 Defining _XOPEN_SOURCE_EXTENDED
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2540 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2541 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2542 #define _XOPEN_SOURCE_EXTENDED 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2543 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2544 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2545
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2546 ;;
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
2547 freebsd4*)
1955
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2548 { test "$extra_verbose" = "yes" && cat << \EOF
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2549 Defining _POSIX_C_SOURCE = 199506L
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2550 EOF
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2551 cat >> confdefs.h <<\EOF
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2552 #define _POSIX_C_SOURCE 199506L
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2553 EOF
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2554 }
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2555
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2556 { test "$extra_verbose" = "yes" && cat << \EOF
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2557 Defining _XOPEN_SOURCE = 500
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2558 EOF
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2559 cat >> confdefs.h <<\EOF
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2560 #define _XOPEN_SOURCE 500
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2561 EOF
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2562 }
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2563
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
2564 ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2565 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2566
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2567 cat > conftest.$ac_ext <<EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2568 #line 2569 "configure"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2569 #include "confdefs.h"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2570 int main () {
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2571 #if defined __SUNPRO_C
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2572 return 11;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2573 #elif defined __DECC
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2574 return 12;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2575 #elif defined __USLC__ && defined __SCO_VERSION__
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2576 return 13;
1756
b5db5c9230b1 [xemacs-hg @ 2003-10-16 19:44:34 by james]
james
parents: 1740
diff changeset
2577 #elif defined __INTEL_COMPILER
b5db5c9230b1 [xemacs-hg @ 2003-10-16 19:44:34 by james]
james
parents: 1740
diff changeset
2578 return 14;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2579 #else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2580 return 0;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2581 #endif
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2582 }
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2583 EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2584 if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2585 then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2586 :
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2587 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2588 conftest_rc="$?"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2589 echo "configure: failed program was:" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2590 cat conftest.$ac_ext >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2591 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2592 case "$conftest_rc" in
1756
b5db5c9230b1 [xemacs-hg @ 2003-10-16 19:44:34 by james]
james
parents: 1740
diff changeset
2593 11) echo "You appear to be using the SunPro C compiler." ; __SUNPRO_C=yes ;;
b5db5c9230b1 [xemacs-hg @ 2003-10-16 19:44:34 by james]
james
parents: 1740
diff changeset
2594 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
b5db5c9230b1 [xemacs-hg @ 2003-10-16 19:44:34 by james]
james
parents: 1740
diff changeset
2595 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
1871
b37a2b08a901 [xemacs-hg @ 2004-01-21 16:26:02 by james]
james
parents: 1800
diff changeset
2596 14) echo "You appear to be using the Intel C++ compiler."; __ICC=yes
b37a2b08a901 [xemacs-hg @ 2004-01-21 16:26:02 by james]
james
parents: 1800
diff changeset
2597 GCC=no ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2598 esac
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2599 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2600 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2601
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2602
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2603
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2604
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2605 echo "Extracting information from the machine- and system-dependent headers..."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2606
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2607 tempcname="conftest.c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2608
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2609
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2610
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2611 cat > $tempcname < confdefs.h
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2612 cat >> $tempcname <<EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2613 #define NOT_C_CODE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2614 #define C_SWITCH_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2615 #define C_SWITCH_X_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2616 #define LD_SWITCH_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2617 #define LD_SWITCH_X_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2618 #define LD_SWITCH_X_SITE_AUX
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2619 #define OS_RELEASE $os_release
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2620
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2621 #ifdef config_opsysfile
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2622 #include "$srcdir/src/$opsysfile"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2623 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2624
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2625 #ifdef config_machfile
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2626 #include "$srcdir/src/$machfile"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2627 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2628
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2629 #ifndef LIBS_MACHINE
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2630 #define LIBS_MACHINE
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2631 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2632 configure___ libs_machine=LIBS_MACHINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2633
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2634 #ifndef LIBS_SYSTEM
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2635 #define LIBS_SYSTEM
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2636 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2637 configure___ libs_system=LIBS_SYSTEM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2638
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2639 #ifndef LIBS_TERMCAP
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2640 #define LIBS_TERMCAP
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2641 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2642 configure___ libs_termcap=LIBS_TERMCAP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2643
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2644 #ifndef LIB_STANDARD
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2645 #define LIB_STANDARD
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2646 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2647 configure___ libs_standard=LIB_STANDARD
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2648
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2649
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2650 #ifndef OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2651 #define OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2652 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2653 configure___ objects_machine=OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2654
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2655 #ifndef OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2656 #define OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2657 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2658 configure___ objects_system=OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2659
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2660
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2661 #ifndef C_SWITCH_MACHINE
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2662 #define C_SWITCH_MACHINE
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2663 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2664 configure___ c_switch_machine=C_SWITCH_MACHINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2665
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2666 #ifndef C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2667 #define C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2668 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2669 configure___ c_switch_system=C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2670
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2671
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2672 #ifndef LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2673 #define LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2674 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2675 configure___ ld_switch_machine=LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2676
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2677 #ifndef LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2678 #define LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2679 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2680 configure___ ld_switch_system=LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2681
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2682
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2683 #ifndef UNEXEC
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2684 #define UNEXEC
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2685 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2686 configure___ unexec=UNEXEC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2687
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2688
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2689 #ifndef SYSTEM_TYPE
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2690 #define SYSTEM_TYPE
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2691 #endif
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2692 configure___ system_type=SYSTEM_TYPE
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2693
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2694
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2695 #ifndef LD_SWITCH_SHARED
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2696 #define LD_SWITCH_SHARED "-c"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2697 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2698 configure___ ld_switch_shared=LD_SWITCH_SHARED
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2699
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2700
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2701 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2702 configure___ ordinary_ld=ORDINARY_LD
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2703
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2704 #ifdef ORDINARY_LINK
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2705 #define LD ORDINARY_LD
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2706 #else /* no ORDINARY LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2707 #ifdef COFF_ENCAPSULATE
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2708 #define LD "\$(CC) -nostdlib"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2709 #else /* not COFF_ENCAPSULATE */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2710 #ifdef LINKER
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2711 #define LD LINKER
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2712 #else /* ! defined (LINKER) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2713 #define LD "ld"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2714 #endif /* ! defined (LINKER) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2715 #endif /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2716 #endif /* not ORDINARY_LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2717 configure___ ld=LD
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2718
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2719 #ifndef LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2720 #define LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2721 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2722 configure___ lib_gcc=LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2723
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2724 #ifndef LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2725 #define LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2726 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2727 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2728
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2729
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2730 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2731 #ifdef NO_REMAP
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2732 #ifdef COFF_ENCAPSULATE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2733 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2734 #else /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2735 #define START_FILES "pre-crt0.o /lib/crt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2736 #endif /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2737 #else /* ! defined (NO_REMAP) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2738 #define START_FILES "ecrt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2739 #endif /* ! defined (NO_REMAP) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2740 #endif /* no ORDINARY_LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2741 #ifndef START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2742 #define START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2743 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2744 configure___ start_files=START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2745
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2746 #ifdef ORDINARY_LINK
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2747 configure___ ordinary_link=yes
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2748 #else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2749 configure___ ordinary_link=no
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2750 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2751
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2752 #ifdef SYSTEM_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2753 configure___ system_malloc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2754 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2755 configure___ system_malloc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2756 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2757
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2758 #ifdef TERMINFO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2759 configure___ have_terminfo=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2760 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2761 configure___ have_terminfo=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2762 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2763
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2764 #ifdef MAIL_USE_FLOCK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2765 configure___ mail_use_flock=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2766 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2767 configure___ mail_use_flock=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2768 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2769
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2770 #ifdef MAIL_USE_LOCKF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2771 configure___ mail_use_lockf=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2772 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2773 configure___ mail_use_lockf=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2774 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2775
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2776 #ifdef MAIL_USE_LOCKING
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2777 configure___ mail_use_locking=yes
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2778 #else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2779 configure___ mail_use_locking=no
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2780 #endif
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2781
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2782 #ifdef HAVE_WIN32_PROCESSES
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2783 configure___ win32_processes=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2784 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2785 configure___ win32_processes=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2786 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2787
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2788 EOF
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2789
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2790 CPP=`eval "echo $CPP $CPPFLAGS"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2791 eval `$CPP -Isrc $tempcname \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
2792 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2793
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2794 rm $tempcname
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2795
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2796 test -z "$system_type" && \
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2797 { test "$extra_verbose" = "yes" && cat << EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2798 Defining SYSTEM_TYPE = "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2799 EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2800 cat >> confdefs.h <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2801 #define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2802 EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2803 }
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2804
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2805
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2806 test -z "$unexec" && pdump=yes
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2807
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2808 if test "$pdump" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2809 ordinary_link="yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2810 ld="${ordinary_ld}"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2811 start_files=
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2812 libs_standard=
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2813 unexec=
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2814 lib_gcc=
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2815 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2816
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2817 test "$extra_verbose" = "yes" && \
201
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 197
diff changeset
2818 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2819
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
2820 case "$opsys" in mingw* | cygwin*)
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2821 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2822 cygwin_include=`eval "dirname $cygwin_include"` ;
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2823 cygwin_include="-I$cygwin_include/../include" ;
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
2824 extra_includes="$cygwin_include/mingw $cygwin_include" ;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
2825 case "$opsys" in mingw*)
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2826 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2827 esac
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
2828 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2829 esac
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2830
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2831 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2832
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2833
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2834 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2835
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2836 if test "$__USLC__" = yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2837 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2838 echo "configure:2839: checking for whether the -Kalloca compiler flag is needed" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2839 need_kalloca=no
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2840 cat > conftest.$ac_ext <<EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2841 #line 2842 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2842 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2843
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2844 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2845 void *x = alloca(4);
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2846 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2847 EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2848 if { (eval echo configure:2849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2849 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2850 :
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2851 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2852 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2853 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2854 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2855
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2856 xe_save_c_switch_system="$c_switch_system"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2857 c_switch_system="$c_switch_system -Kalloca"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2858 cat > conftest.$ac_ext <<EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2859 #line 2860 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2860 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2861
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2862 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2863 void *x = alloca(4);
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2864 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2865 EOF
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
2866 if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2867 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2868 need_kalloca=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2869 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2870 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2871 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2872 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2873 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2874 c_switch_system="$xe_save_c_switch_system"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2875 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2876 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2877 echo "$ac_t""$need_kalloca" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2878 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2879 fi
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2880
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2881 if test "$CC" != "$XEMACS_CC"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2882 if test "$XEMACS_CC" = "g++" -a "$GCC" != "yes"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2883 echo "configure: warning: CC and g++ are mismatched; XE_CFLAGS may be wrong" 1>&2
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2884 xemacs_cc_cc_mismatch=yes
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2885 elif test -n "$GCC" -a "$XEMACS_CC" != "g++"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2886 echo "configure: warning: gcc and XEMACS_CC are mismatched; XE_CFLAGS may be wrong" 1>&2
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2887 xemacs_cc_cc_mismatch=yes
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2888 else
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2889 xemacs_cc_cc_mismatch=no
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2890 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2891 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2892
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2893
1998
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2894 echo $ac_n "checking for preferred CFLAGS""... $ac_c" 1>&6
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2895 echo "configure:2896: checking for preferred CFLAGS" >&5
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2896
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2897 if test "$cflags_specified" = "no"; then
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
2898 if test "$GCC" = "yes"; then
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2899 CFLAGS="-g -O3"
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2900 elif test "$__SUNPRO_C" = "yes"; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2901 case "$opsys" in
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2902 sol2 ) CFLAGS="-xO4" ;;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2903 sunos4* ) CFLAGS="-xO2" ;;
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2904 esac
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2905 elif test "$__DECC" = "yes"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2906 CFLAGS="-O3"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2907 elif test "$CC" = "xlc"; then
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2908 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qro -qmaxmem=20000"
1756
b5db5c9230b1 [xemacs-hg @ 2003-10-16 19:44:34 by james]
james
parents: 1740
diff changeset
2909 elif test "$__ICC" = "yes"; then
b5db5c9230b1 [xemacs-hg @ 2003-10-16 19:44:34 by james]
james
parents: 1740
diff changeset
2910 CFLAGS="-g -O3 -Ob2"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2911 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2912 CFLAGS="-O" ; fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2913 fi
1998
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2914 echo "$ac_t""${CFLAGS}" 1>&6
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2915
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2916
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2917 echo $ac_n "checking for preferred warning flags for XEMACS_CC""... $ac_c" 1>&6
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2918 echo "configure:2919: checking for preferred warning flags for XEMACS_CC" >&5
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2919
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2920 xe_cflags_warning=""
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2921
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2922 if test "$cflags_warning_specified" = "no"; then
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2923 if test "$__SUNPRO_C" = "yes"; then
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2924 case "$opsys" in
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2925 sol2 ) cflags_warning="-v" ;;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2926 esac
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2927 elif test "$CC" = "xlc"; then
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2928 cflags_warning="-qinfo"
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2929 elif test "$GCC" = "yes"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2930 cflags_warning="-Wall -Wno-switch -Winline -Wmissing-prototypes"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2931 cflags_warning="$cflags_warning -Wsign-compare"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2932 cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2933 if test "$__GCC3" = "yes"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2934 cflags_warning="$cflags_warning -Wpacked"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2935 fi
1998
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2936 test "$have_glibc" != "yes" && \
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2937 cflags_warning="$cflags_warning -Wpointer-arith"
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2938 test "$xemacs_compiler" = "g++" && \
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2939 xe_cflags_warning="$cflags_warning -Weffc++"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2940 cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations"
1998
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2941 elif test "$__ICC" = "yes"; then
2050
a741f294362b [xemacs-hg @ 2004-04-30 14:59:15 by james]
james
parents: 2048
diff changeset
2942 cflags_warning="-Wall -w1 -we147"
1998
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2943 fi
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2944 fi
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2945 test -z "$xe_cflags_warning" && xe_cflags_warning="$cflags_warning"
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2946 echo "$ac_t""${xe_cflags_warning}" 1>&6
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2947
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2948 echo $ac_n "checking for preferred warning flags for CC""... $ac_c" 1>&6
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2949 echo "configure:2950: checking for preferred warning flags for CC" >&5
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2950 echo "$ac_t""${cflags_warning}" 1>&6
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2951
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
2952 XE_CFLAGS="$xe_cflags_warning $CFLAGS"
1922
569139be45f6 [xemacs-hg @ 2004-02-21 07:53:59 by stephent]
stephent
parents: 1916
diff changeset
2953 CFLAGS="$cflags_warning $CFLAGS"
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
2954
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2955 if test "$GCC" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2956 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
1998
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
2957 echo "configure:2958: checking for buggy gcc versions" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2958 GCC_VERSION=`$CC --version`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2959 case `uname -s`:`uname -m`:$GCC_VERSION in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2960 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2961 case "$CFLAGS" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2962 *-O2*|*-O3*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2963 case "$CFLAGS" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2964 *-fno-schedule-insns*) ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2965 *)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2966 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2967 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2968 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2969 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2970 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2971 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2972 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2973 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2974 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2975 Linux:alpha:egcs-2.91.*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2976 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2977 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2978 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2979 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2980 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2981 *:i*86*:2.7.2*)
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2982 case "$CFLAGS" in
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2983 *-O2*|*-O3*)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2984 case "$GCC_VERSION" in
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2985 2.7.2)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2986 case "$CFLAGS" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2987 *-fno-strength-reduce*) ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2988 *)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2989 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2990 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2991 echo "configure: warning: -fno-strength-reduce." 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2992 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2993 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2994 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2995 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2996 esac
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2997 case "$CFLAGS" in
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2998 *-fno-caller-saves*) ;;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2999 *)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
3000 echo "$ac_t""yes" 1>&6
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
3001 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
3002 echo "configure: warning: -fno-caller-saves." 1>&2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
3003 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
3004 ;;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
3005 esac
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3006 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3007 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3008 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3009 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3010 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3011 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3012
853
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3013 if test "$pdump" != "yes"; then
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3014 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
1998
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
3015 echo "configure:3016: checking for \"-z nocombreloc\" linker flag" >&5
853
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3016 case "`ld --help 2>&1`" in
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3017 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3018 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3019 *) echo "$ac_t""no" 1>&6 ;;
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3020 esac
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3021 fi
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3022
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3023
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3024
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3025 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3026 set x $ld_switch_system; shift; ld_switch_system=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3027 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3028 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3029 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3030 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3031 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3032 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3033 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3034 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3035 done
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
3036 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3037
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3038 if test "$GCC" = "yes"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3039 set x $ld_switch_machine; shift; ld_switch_machine=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3040 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3041 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3042 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3043 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3044 -Xlinker* ) ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3045 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3046 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3047 shift
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3048 done
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3049 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3050
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3051 if test "$GCC" = "yes"; then
853
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3052 set x $ld_switch_site; shift; ld_switch_site=""
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3053 while test -n "$1"; do
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3054 case $1 in
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3055 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3056 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3057 -Xlinker* ) ;;
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3058 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3059 esac
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3060 shift
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3061 done
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3062 fi
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3063
2b6fa2618f76 [xemacs-hg @ 2002-05-28 08:44:22 by ben]
ben
parents: 831
diff changeset
3064 if test "$GCC" = "yes"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3065 set x $LDFLAGS; shift; LDFLAGS=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3066 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3067 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3068 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3069 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3070 -Xlinker* ) ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3071 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3072 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3073 shift
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3074 done
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3075 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3076
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3077 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3078 set x $ld_call_shared; shift; ld_call_shared=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3079 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3080 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3081 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3082 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
3083 -Xlinker* ) ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3084 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
3085 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3086 shift
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
3087 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3088 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3089
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3090 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3091 echo " xemacs will be linked with \"$objects_machine\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3092 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3093 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3094 echo " xemacs will be linked with \"$objects_system\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3095 fi
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3096 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3097 echo " xemacs will be linked with \"$unexec\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3098 fi
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3099 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3100 echo " xemacs will be linked with \"dumper.o\""
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3101 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3102
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3103 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
1998
1d23b62cc251 [xemacs-hg @ 2004-04-07 17:43:31 by stephent]
stephent
parents: 1997
diff changeset
3104 echo "configure:3105: checking for dynodump" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3105 if test "$unexec" != "unexsol2.o"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3106 echo "$ac_t""no" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3107 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3108 echo "$ac_t""yes" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3109 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3110 Defining DYNODUMP
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3111 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3112 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3113 #define DYNODUMP 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3114 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3115 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3116
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3117 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
3118 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3119 case "$machine" in
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3120 sparc ) dynodump_arch=sparc ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3121 *86* ) dynodump_arch=i386 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3122 powerpc ) dynodump_arch=ppc ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3123 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3124 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3125 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3126
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3127
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3128
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3129 if test "$unexec" = "unexaix.o"; then
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
3130 if test "$dynamic" = "no"; then
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3131 start_flags="-Wl,-bnso,-bnodelcsect"
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
3132 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3133 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3134 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3135 done
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3136 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3137 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3138 done
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3139
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3140 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3141 echo "configure:3142: checking for terminateAndUnload in -lC" >&5
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3142 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3143
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3144 xe_check_libs=" -lC "
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3145 cat > conftest.$ac_ext <<EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3146 #line 3147 "configure"
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3147 #include "confdefs.h"
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3148 /* Override any gcc2 internal prototype to avoid an error. */
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3149 /* We use char because int might match the return type of a gcc2
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3150 builtin and then its argument prototype would still apply. */
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3151 char terminateAndUnload();
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3152
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3153 int main() {
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3154 terminateAndUnload()
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3155 ; return 0; }
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3156 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3157 if { (eval echo configure:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3158 rm -rf conftest*
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3159 eval "ac_cv_lib_$ac_lib_var=yes"
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3160 else
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3161 echo "configure: failed program was:" >&5
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3162 cat conftest.$ac_ext >&5
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3163 rm -rf conftest*
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3164 eval "ac_cv_lib_$ac_lib_var=no"
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3165 fi
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3166 rm -f conftest*
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3167 xe_check_libs=""
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3168
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3170 echo "$ac_t""yes" 1>&6
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3171 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3172 else
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3173 echo "$ac_t""no" 1>&6
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3174 fi
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3175
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
3176
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3177 fi
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3178 elif test -n "$ld_text_start_addr"; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3179 start_flags="-T $ld_text_start_addr -e __start"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3180 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3181
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3182
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3183
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3184
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3185 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3186 test -z "$linker" && linker='$(CC) -nostdlib'
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
3187 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3188 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3189 test "$GCC" != "yes" && lib_gcc=
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3190
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3191
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3192
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3193
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3194 compiler_version=""
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3195 gcc_compiler_specs=""
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3196 libc_version=""
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3197
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3198 echo $ac_n "checking for compiler version information""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3199 echo "configure:3200: checking for compiler version information" >&5
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3200
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3201 if test "$GCC" = "yes"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3202 compiler_version=`$XEMACS_CC --version | head -1`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3203 gcc_compiler_specs=`$XEMACS_CC -v 2>&1 | sed 's/.* \([^ ]\)/\1/' | head -1`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3204 else case "$XEMACS_CC" in
2048
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
3205 ic*)
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3206 compiler_version=`icc -V 2>&1 | head -1`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3207 ;;
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3208 *) case "$canonical" in
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3209 *-*-aix* )
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3210 realcc=`which $XEMACS_CC`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3211 if test -L $realcc ; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3212 ccdir=`dirname $realcc`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3213 ccprog=`/bin/ls -l $realcc | sed 's/.* \([^ ]\)/\1/'`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3214 case $ccprog in
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3215 */*) realcc=$ccprog;;
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3216 *) realcc=$ccdir/$ccprog;;
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3217 esac
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3218 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3219 lpp=`lslpp -wqc $realcc | cut -f2 -d:`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3220 if test ! -z "$lpp" ; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3221 lppstr=`lslpp -Lqc $lpp`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3222 lpplev=`echo "$lppstr" | cut -f3 -d:`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3223 lppdesc=`echo "$lppstr" | cut -f8 -d:`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3224 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3225 if test ! -z "$lpplev" ; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3226 compiler_version="$lpp $lpplev - $lppdesc"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3227 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3228 ;;
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3229
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3230 *-*-solaris*)
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3231 compiler_version=`$XEMACS_CC -V 2>&1 | head -1`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3232 ;;
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3233
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3234 alpha*-dec-osf*)
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3235 compiler_version=`$XEMACS_CC -V | tr '\n' ' '`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3236 ;;
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3237
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3238 mips-sgi-irix*)
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3239 compiler_version=`$XEMACS_CC -version`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3240 ;;
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3241 esac
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3242 esac
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3243 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3244
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3245 if test -z "$compiler_version"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3246 compiler_version="detection failed (please report this)"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3247 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3248
1955
02446ca6a05d [xemacs-hg @ 2004-03-18 09:57:08 by stephent]
stephent
parents: 1922
diff changeset
3249 echo $ac_n "checking for standard C library version information""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3250 echo "configure:3251: checking for standard C library version information" >&5
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3251
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3252 case "$canonical" in
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3253 *-*-linux*)
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3254 if test -f /etc/redhat-release ; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3255 libc_version=`rpm -q glibc`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3256 elif test -f /etc/debian_version ; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3257 libc_version=`dpkg-query --showformat='${version}' --show libc6`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3258 libc_version="GNU libc $libc_version (Debian)"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3259 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3260 if test -z "$libc_version"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3261 libc_version=`ls /lib/libc-*.so | sed -e 's,/lib/libc-\(.*\)\.so,\1,'`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3262 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3263 ;;
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3264
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3265 *-*-aix*)
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3266 libc_version="bos.rte.libc `lslpp -Lqc bos.rte.libc | cut -f3 -d:`"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3267 ;;
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3268
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3269 *-*-solaris*)
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3270 libc=`pkginfo -l SUNWcsl | grep VERSION: | awk '{print $2}'`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3271 libc_version="SUNWcsl $libc"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3272
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3273 ;;
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3274
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3275 mips-sgi-irix*)
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3276 libc_version="IRIX libc `uname -sRm`"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3277 ;;
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3278
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3279 alpha*-dec-osf*)
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3280 (cd /usr/.smdb.;
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3281 libc_version=` grep -h libc.so *.inv | awk '$9 == "f" {print $12}' | tr '\n' ','`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3282 )
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3283 ;;
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3284 esac
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3285
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3286 if test -z "libc_version"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3287 libc_version="detection failed (please report this)"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3288 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3289
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
3290
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
3291
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3292 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3293 if test -n "$site_libraries"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3294 for arg in $site_libraries; do
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3295 case "$arg" in
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3296 -* ) ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3297 * ) test -d "$arg" || \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
3298 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3299 arg="-L${arg}" ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3300 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3301 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3302 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3303 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3304
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3305 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3306 if test -n "$site_includes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3307 for arg in $site_includes; do
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3308 case "$arg" in
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3309 -* ) ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3310 * ) test -d "$arg" || \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
3311 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3312 arg="-I${arg}" ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3313 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3314 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3315 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3316 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3317
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3318 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3319 if test -n "$site_prefixes"; then
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3320 for dir in $site_prefixes; do
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3321 lib_dir="${dir}/lib"
416
ebe98a74bd68 Import from CVS: tag r21-2-16
cvs
parents: 414
diff changeset
3322 inc_dir="${dir}/include"
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3323 if test ! -d "$dir"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
3324 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3325 elif test ! -d "$lib_dir"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
3326 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3327 else
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
3328 if test -d "$inc_dir"; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
3329 c_switch_site="$c_switch_site "-I$inc_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-I$inc_dir"\" to \$c_switch_site"; fi
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
3330 fi
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3331 ld_switch_site="$ld_switch_site "-L$lib_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-L$lib_dir"\" to \$ld_switch_site"; fi
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3332 fi
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3333 done
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3334 fi
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3335
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
3336
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3337 for dir in "/usr/ccs/lib"; do
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3338 test -d "$dir" && ld_switch_system="$ld_switch_system -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_system"; fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3339 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3340
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3341 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3342 if test -n "$site_runtime_libraries"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
3343 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3344 export LD_RUN_PATH
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3345 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3346
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3347
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3348
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3349
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3350
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3351 if test -n "$add_runtime_path"; then :;
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3352 elif test "$dynamic" = "no"; then add_runtime_path=no
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3353 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3354 else case "$opsys" in
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3355 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3356 * ) add_runtime_path=no ;;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3357 esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3358 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3359
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3360 if test "$add_runtime_path" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3361 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3362 echo "configure:3363: checking "for runtime libraries flag"" >&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3363 case "$opsys" in
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
3364 sol2 ) dash_r="-R" ;;
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3365 decosf* | linux* | irix*) dash_r="-rpath " ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3366 *)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3367 dash_r=""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3368 for try_dash_r in "-R" "-R " "-rpath "; do
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3369 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3370
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3371 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3372 set x $xe_check_libs; shift; xe_check_libs=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3373 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3374 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3375 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3376 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3377 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3378 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3379 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3380 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3381 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3382 fi
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3383 cat > conftest.$ac_ext <<EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3384 #line 3385 "configure"
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3385 #include "confdefs.h"
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3386
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3387 int main() {
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3388
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3389 ; return 0; }
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3390 EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3391 if { (eval echo configure:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3392 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3393 dash_r="$try_dash_r"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3394 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3395 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3396 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3397 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3398 rm -f conftest*
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3399 xe_check_libs=""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3400 test -n "$dash_r" && break
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3401 done ;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3402 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3403 if test -n "$dash_r";
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3404 then echo "$ac_t"""\"${dash_r}\""" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3405 else echo "$ac_t""NONE" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3406 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3407 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3408
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3409 xe_add_unique_runpath_dir='
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3410 xe_add_p=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3411 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3412 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3413 if test "$xe_add_p" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3414 test -n "$runpath" && runpath="${runpath}:"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3415 runpath="${runpath}${xe_runpath_dir}"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3416 runpath_dirs="$runpath_dirs $xe_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3417 fi'
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3418
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3419
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3420
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3421
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3422 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
3423 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
3424 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3425
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3426 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3427 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3428 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3429 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3430 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3431 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3432 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3433 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3434 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
3435 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3436 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3437 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3438 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3439 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
3440 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3441 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3442 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3443 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3444 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3445 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3446 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3447 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3448 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3449 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3450 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
3451 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3452 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3453 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
3454 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3455 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3456 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3457 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3458 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3459 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3460 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3461 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3462 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3463 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3464 ld_switch_run="${dash_r}${runpath}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3465
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3466 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3467 set x $ld_switch_run; shift; ld_switch_run=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3468 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3469 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3470 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3471 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3472 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3473 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3474 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3475 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3476 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3477 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3478 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3479 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3480 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3481
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3482
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3483
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3484 GNU_MALLOC=yes
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3485 if test "$with_dlmalloc" != "no"; then
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3486 doug_lea_malloc=yes
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3487 else
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3488 doug_lea_malloc=no
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3489 fi
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3490 after_morecore_hook_exists=yes
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3491 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3492 echo "configure:3493: checking for malloc_set_state" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3493
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3494 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3495 #line 3496 "configure"
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3496 #include "confdefs.h"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3497 /* System header to define __stub macros and hopefully few prototypes,
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3498 which can conflict with char malloc_set_state(); below. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3499 #include <assert.h>
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3500 /* Override any gcc2 internal prototype to avoid an error. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3501 /* We use char because int might match the return type of a gcc2
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3502 builtin and then its argument prototype would still apply. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3503 char malloc_set_state();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3504
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3505 int main() {
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3506
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3507 /* The GNU C library defines this for functions which it implements
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3508 to always fail with ENOSYS. Some functions are actually named
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3509 something starting with __ and the normal name is an alias. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3510 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3511 choke me
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3512 #else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3513 malloc_set_state();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3514 #endif
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3515
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3516 ; return 0; }
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3517 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3518 if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3519 rm -rf conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3520 eval "ac_cv_func_malloc_set_state=yes"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3521 else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3522 echo "configure: failed program was:" >&5
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3523 cat conftest.$ac_ext >&5
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3524 rm -rf conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3525 eval "ac_cv_func_malloc_set_state=no"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3526 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3527 rm -f conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3528
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3529 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3530 echo "$ac_t""yes" 1>&6
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3531 :
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3532 else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3533 echo "$ac_t""no" 1>&6
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3534 doug_lea_malloc=no
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3535 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3536
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3537 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3538 echo "configure:3539: checking whether __after_morecore_hook exists" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3539 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3540 #line 3541 "configure"
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3541 #include "confdefs.h"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3542 extern void (* __after_morecore_hook)();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3543 int main() {
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3544 __after_morecore_hook = 0
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3545 ; return 0; }
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3546 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3547 if { (eval echo configure:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3548 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3549 echo "$ac_t""yes" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3550 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3551 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3552 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3553 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3554 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3555 after_morecore_hook_exists=no
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3556 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3557 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3558 if test "$system_malloc" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3559 GNU_MALLOC=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3560 GNU_MALLOC_reason="
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3561 - The GNU allocators don't work with this system configuration."
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
3562 elif test "$with_system_malloc" = "yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3563 GNU_MALLOC=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3564 GNU_MALLOC_reason="
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3565 - User chose not to use GNU allocators."
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
3566 elif test "$with_debug_malloc" = "yes" ; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
3567 GNU_MALLOC=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
3568 GNU_MALLOC_reason="
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3569 - User chose to use Debugging Malloc."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3570 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3571
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3572 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3573 GNU_MALLOC_reason="
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3574 - Using Doug Lea's new malloc from the GNU C Library."
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3575 { test "$extra_verbose" = "yes" && cat << \EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3576 Defining DOUG_LEA_MALLOC
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3577 EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3578 cat >> confdefs.h <<\EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3579 #define DOUG_LEA_MALLOC 1
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3580 EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3581 }
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3582
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3583 if test "$after_morecore_hook_exists" = "no" ; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3584 GNU_MALLOC_reason="
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3585 - Using Doug Lea's new malloc from the Linux C Library."
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3586 { test "$extra_verbose" = "yes" && cat << \EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3587 Defining _NO_MALLOC_WARNING_
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3588 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3589 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3590 #define _NO_MALLOC_WARNING_ 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3591 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3592 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3593
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3594 fi
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3595 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3596
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3597
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
3598
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
3599
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3600 # Extract the first word of "ranlib", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3601 set dummy ranlib; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3603 echo "configure:3604: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3604
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3605 if test -n "$RANLIB"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3607 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3609 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3610 for ac_dir in $ac_dummy; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3611 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3612 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3613 ac_cv_prog_RANLIB="ranlib"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3614 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3615 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3616 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3617 IFS="$ac_save_ifs"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3618 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3619 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3620 RANLIB="$ac_cv_prog_RANLIB"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3621 if test -n "$RANLIB"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3622 echo "$ac_t""$RANLIB" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3623 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3624 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3625 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3626
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3627 ac_aux_dir=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3628 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3629 if test -f $ac_dir/install-sh; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3630 ac_aux_dir=$ac_dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3631 ac_install_sh="$ac_aux_dir/install-sh -c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3632 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3633 elif test -f $ac_dir/install.sh; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3634 ac_aux_dir=$ac_dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3635 ac_install_sh="$ac_aux_dir/install.sh -c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3636 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3637 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3638 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3639 if test -z "$ac_aux_dir"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3640 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3641 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3642 ac_config_guess=$ac_aux_dir/config.guess
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3643 ac_config_sub=$ac_aux_dir/config.sub
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3644 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3645
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3646 # Find a good install program. We prefer a C program (faster),
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3647 # so one script is as good as another. But avoid the broken or
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3648 # incompatible versions:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3649 # SysV /etc/install, /usr/sbin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3650 # SunOS /usr/etc/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3651 # IRIX /sbin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3652 # AIX /bin/install
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3653 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3656 # ./install, which can be erroneously created by make from ./install.sh.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3657 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3658 echo "configure:3659: checking for a BSD compatible install" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3659 if test -z "$INSTALL"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3660
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3661 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3662 for ac_dir in $PATH; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3663 # Account for people who put trailing slashes in PATH elements.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3664 case "$ac_dir/" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3665 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3666 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3667 # OSF1 and SCO ODT 3.0 have their own names for install.
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3668 # Don't use installbsd from OSF since it installs stuff as root
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3669 # by default.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3670 for ac_prog in ginstall scoinst install; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3671 if test -f $ac_dir/$ac_prog; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3672 if test $ac_prog = install &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3673 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3674 # AIX install. It has an incompatible calling convention.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3675 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3676 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3677 ac_cv_path_install="$ac_dir/$ac_prog -c"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3678 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3679 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3680 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3681 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3682 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3683 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3684 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3685 IFS="$ac_save_IFS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3686
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3687 if test "${ac_cv_path_install+set}" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3688 INSTALL="$ac_cv_path_install"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3689 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3690 # As a last resort, use the slow shell script. We don't cache a
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3691 # path for INSTALL within a source directory, because that will
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3692 # break other packages using the cache if that directory is
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3693 # removed, or if the path is relative.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3694 INSTALL="$ac_install_sh"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3695 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3696 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3697 echo "$ac_t""$INSTALL" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3698
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3699 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3700 # It thinks the first close brace ends the variable substitution.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3701 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3702
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3703 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3704
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3705 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3706
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3707 for ac_prog in 'bison -y' byacc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3708 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3710 set dummy $ac_prog; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3712 echo "configure:3713: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3713
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3714 if test -n "$YACC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3715 ac_cv_prog_YACC="$YACC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3716 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3718 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3719 for ac_dir in $ac_dummy; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3720 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3721 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3722 ac_cv_prog_YACC="$ac_prog"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3723 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3724 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3725 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3726 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3727 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3728 YACC="$ac_cv_prog_YACC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3729 if test -n "$YACC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3730 echo "$ac_t""$YACC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3731 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3732 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3733 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3734
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3735 test -n "$YACC" && break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3736 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3737 test -n "$YACC" || YACC="yacc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3738
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3739
911
428608d46017 [xemacs-hg @ 2002-07-09 11:57:41 by michaels]
michaels
parents: 894
diff changeset
3740 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h wchar.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/times.h sys/un.h ulimit.h unistd.h
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3741 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3744 echo "configure:3745: checking for $ac_hdr" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3745
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3746 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3747 #line 3748 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3748 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3749 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3750 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3752 { (eval echo configure:3753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3754 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3755 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3756 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3757 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3758 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3759 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3760 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3761 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3762 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3763 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3764 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3766 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3768 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3769 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3770 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3771 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3772 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3773 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3774 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3775
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3776 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3777 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3778 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3779 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3780
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3781 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3782 echo "configure:3783: checking for sys/wait.h that is POSIX.1 compatible" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3783
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3784 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3785 #line 3786 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3786 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3787 #include <sys/types.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3788 #include <sys/wait.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3789 #ifndef WEXITSTATUS
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3790 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3791 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3792 #ifndef WIFEXITED
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3793 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3794 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3795 int main() {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3796 int s;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3797 wait (&s);
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3798 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3799 ; return 0; }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3800 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3801 if { (eval echo configure:3802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3802 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3803 ac_cv_header_sys_wait_h=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3804 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3805 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3806 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3807 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3808 ac_cv_header_sys_wait_h=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3809 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3810 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3811
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3812 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3813 if test $ac_cv_header_sys_wait_h = yes; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3814 { test "$extra_verbose" = "yes" && cat << \EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3815 Defining HAVE_SYS_WAIT_H
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3816 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3817 cat >> confdefs.h <<\EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3818 #define HAVE_SYS_WAIT_H 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3819 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3820 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3821
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3822 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3823
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3824 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3825 echo "configure:3826: checking for ANSI C header files" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3826
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3827 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3828 #line 3829 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3829 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3830 #include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3831 #include <stdarg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3832 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3833 #include <float.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3834 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3836 { (eval echo configure:3837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3838 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3839 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3840 ac_cv_header_stdc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3841 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3842 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3843 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3844 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3845 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3846 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3847 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3848 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3849
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3850 if test $ac_cv_header_stdc = yes; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3852 cat > conftest.$ac_ext <<EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3853 #line 3854 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3854 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3855 #include <string.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3856 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3858 egrep "memchr" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3859 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3860 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3861 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3862 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3863 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3864 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3865
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3866 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3867
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3868 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3870 cat > conftest.$ac_ext <<EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3871 #line 3872 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3872 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3873 #include <stdlib.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3874 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3876 egrep "free" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3877 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3878 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3879 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3880 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3881 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3882 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3883
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3884 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3885
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3886 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3888 cat > conftest.$ac_ext <<EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3889 #line 3890 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3890 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3891 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3892 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3893 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3895 int main () { int i; for (i = 0; i < 256; i++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3896 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3897 exit (0); }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3898
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3899 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3900 if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3901 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3902 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3903 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3904 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3905 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3906 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3907 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3908 ac_cv_header_stdc=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3909 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3910 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3911 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3912
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3913 echo "$ac_t""$ac_cv_header_stdc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3914 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3915 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3916 Defining STDC_HEADERS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3917 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3918 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3919 #define STDC_HEADERS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3920 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3921 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3922
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3923 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3924
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3925 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3926 echo "configure:3927: checking whether time.h and sys/time.h may both be included" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3927
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3928 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3929 #line 3930 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3930 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3931 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3932 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3933 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3934 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3935 struct tm *tp;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3936 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3937 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3938 if { (eval echo configure:3939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3939 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3940 ac_cv_header_time=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3941 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3942 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3943 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3944 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3945 ac_cv_header_time=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3946 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3947 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3948
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3949 echo "$ac_t""$ac_cv_header_time" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3950 if test $ac_cv_header_time = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3951 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3952 Defining TIME_WITH_SYS_TIME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3953 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3954 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3955 #define TIME_WITH_SYS_TIME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3956 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3957 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3958
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3959 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3960
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3961 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3962 echo "configure:3963: checking for sys_siglist declaration in signal.h or unistd.h" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3963
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3964 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3965 #line 3966 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3966 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3967 #include <sys/types.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3968 #include <signal.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3969 /* NetBSD declares sys_siglist in unistd.h. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3970 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3971 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3972 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3973 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3974 char *msg = *(sys_siglist + 1);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3975 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3976 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
3977 if { (eval echo configure:3978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3978 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3979 ac_cv_decl_sys_siglist=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3980 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3981 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3982 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3983 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3984 ac_cv_decl_sys_siglist=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3985 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3986 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3987
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3988 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3989 if test $ac_cv_decl_sys_siglist = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3990 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3991 Defining SYS_SIGLIST_DECLARED
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3992 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3993 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3994 #define SYS_SIGLIST_DECLARED 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3995 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3996 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3997
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3998 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3999
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4000
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4001
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4002 echo $ac_n "checking for utime""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4003 echo "configure:4004: checking for utime" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4004 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4005 #line 4006 "configure"
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4006 #include "confdefs.h"
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4007 #include <sys/types.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4008 #include <utime.h>
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4009 int main() {
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4010 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4011 ; return 0; }
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4012 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4013 if { (eval echo configure:4014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4014 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4015 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4016 { test "$extra_verbose" = "yes" && cat << \EOF
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4017 Defining HAVE_UTIME
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4018 EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4019 cat >> confdefs.h <<\EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4020 #define HAVE_UTIME 1
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4021 EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4022 }
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4023
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4024 else
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4025 echo "configure: failed program was:" >&5
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4026 cat conftest.$ac_ext >&5
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4027 rm -rf conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4028 echo "$ac_t""no" 1>&6
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4029 for ac_func in utimes
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4030 do
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4032 echo "configure:4033: checking for $ac_func" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4033
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4034 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4035 #line 4036 "configure"
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4036 #include "confdefs.h"
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4037 /* System header to define __stub macros and hopefully few prototypes,
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4038 which can conflict with char $ac_func(); below. */
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4039 #include <assert.h>
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4040 /* Override any gcc2 internal prototype to avoid an error. */
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4041 /* We use char because int might match the return type of a gcc2
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4042 builtin and then its argument prototype would still apply. */
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4043 char $ac_func();
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4044
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4045 int main() {
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4046
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4047 /* The GNU C library defines this for functions which it implements
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4048 to always fail with ENOSYS. Some functions are actually named
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4049 something starting with __ and the normal name is an alias. */
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4051 choke me
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4052 #else
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4053 $ac_func();
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4054 #endif
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4055
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4056 ; return 0; }
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4057 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4058 if { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4059 rm -rf conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4060 eval "ac_cv_func_$ac_func=yes"
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4061 else
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4062 echo "configure: failed program was:" >&5
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4063 cat conftest.$ac_ext >&5
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4064 rm -rf conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4065 eval "ac_cv_func_$ac_func=no"
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4066 fi
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4067 rm -f conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4068
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4070 echo "$ac_t""yes" 1>&6
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4072 { test "$extra_verbose" = "yes" && cat << EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4073 Defining $ac_tr_func
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4074 EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4075 cat >> confdefs.h <<EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4076 #define $ac_tr_func 1
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4077 EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4078 }
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4079
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4080 else
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4081 echo "$ac_t""no" 1>&6
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4082 fi
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4083 done
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4084
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4085 fi
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4086 rm -f conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
4087
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4088
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4089 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4090 echo "configure:4091: checking return type of signal handlers" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4091
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4092 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4093 #line 4094 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4094 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4095 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4096 #include <signal.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4097 #ifdef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4098 #undef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4099 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4100 #ifdef __cplusplus
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4101 extern "C" void (*signal (int, void (*)(int)))(int);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4102 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4103 void (*signal ()) ();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4104 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4105
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4106 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4107 int i;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4108 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4109 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4110 if { (eval echo configure:4111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4111 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4112 ac_cv_type_signal=void
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4113 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4114 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4115 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4116 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4117 ac_cv_type_signal=int
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4118 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4119 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4120
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4121 echo "$ac_t""$ac_cv_type_signal" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4122 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4123 Defining RETSIGTYPE = $ac_cv_type_signal
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4124 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4125 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4126 #define RETSIGTYPE $ac_cv_type_signal
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4127 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4128 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4129
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4130
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4131 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4132 echo "configure:4133: checking for size_t" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4133
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4134 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4135 #line 4136 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4136 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4137 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4138 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4139 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4140 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4141 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4142 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
4144 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4145 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4146 ac_cv_type_size_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4147 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4148 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4149 ac_cv_type_size_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4150 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4151 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4152
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4153 echo "$ac_t""$ac_cv_type_size_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4154 if test $ac_cv_type_size_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4155 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4156 Defining size_t = unsigned
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4157 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4158 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4159 #define size_t unsigned
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4160 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4161 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4162
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4163 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4164
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4165 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4166 echo "configure:4167: checking for pid_t" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4167
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4168 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4169 #line 4170 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4170 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4171 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4172 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4173 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4174 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4175 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4176 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
4178 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4179 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4180 ac_cv_type_pid_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4181 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4182 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4183 ac_cv_type_pid_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4184 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4185 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4186
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4187 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4188 if test $ac_cv_type_pid_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4189 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4190 Defining pid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4191 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4192 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4193 #define pid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4194 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4195 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4196
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4197 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4198
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4199 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4200 echo "configure:4201: checking for uid_t in sys/types.h" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4201
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4202 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4203 #line 4204 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4204 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4205 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4206 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4208 egrep "uid_t" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4209 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4210 ac_cv_type_uid_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4211 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4212 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4213 ac_cv_type_uid_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4214 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4215 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4216
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4217
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4218 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4219 if test $ac_cv_type_uid_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4220 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4221 Defining uid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4222 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4223 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4224 #define uid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4225 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4226 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4227
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4228 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4229 Defining gid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4230 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4231 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4232 #define gid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4233 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4234 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4235
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4236 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4237
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4238 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4239 echo "configure:4240: checking for mode_t" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4240
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4241 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4242 #line 4243 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4243 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4244 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4245 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4246 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4247 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4248 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4249 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
4251 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4252 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4253 ac_cv_type_mode_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4254 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4255 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4256 ac_cv_type_mode_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4257 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4258 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4259
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4260 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4261 if test $ac_cv_type_mode_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4262 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4263 Defining mode_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4264 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4265 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4266 #define mode_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4267 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4268 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4269
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4270 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4271
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4272 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4273 echo "configure:4274: checking for off_t" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4274
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4275 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4276 #line 4277 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4277 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4278 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4279 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4280 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4281 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4282 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4283 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
4285 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4286 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4287 ac_cv_type_off_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4288 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4289 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4290 ac_cv_type_off_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4291 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4292 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4293
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4294 echo "$ac_t""$ac_cv_type_off_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4295 if test $ac_cv_type_off_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4296 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4297 Defining off_t = long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4298 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4299 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4300 #define off_t long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4301 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4302 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4303
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4304 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4305
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4306 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4307 echo "configure:4308: checking for ssize_t" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4308
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4309 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4310 #line 4311 "configure"
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4311 #include "confdefs.h"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4312 #include <sys/types.h>
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4313 #if STDC_HEADERS
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4314 #include <stdlib.h>
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4315 #include <stddef.h>
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4316 #endif
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4317 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4319 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4320 rm -rf conftest*
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4321 ac_cv_type_ssize_t=yes
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4322 else
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4323 rm -rf conftest*
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4324 ac_cv_type_ssize_t=no
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4325 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4326 rm -f conftest*
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4327
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4328 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4329 if test $ac_cv_type_ssize_t = no; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4330 { test "$extra_verbose" = "yes" && cat << \EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4331 Defining ssize_t = int
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4332 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4333 cat >> confdefs.h <<\EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4334 #define ssize_t int
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4335 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4336 }
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4337
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4338 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4339
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
4340
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4341 if test "$ac_cv_header_inttypes_h" != "yes"; then
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4342 echo $ac_n "checking for intptr_t in sys/types.h""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4343 echo "configure:4344: checking for intptr_t in sys/types.h" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4344 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4345 #line 4346 "configure"
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4346 #include "confdefs.h"
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4347 #include <sys/types.h>
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4348 intptr_t x;
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4349
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4350 int main() {
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4351
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4352 ; return 0; }
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4353 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4354 if { (eval echo configure:4355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4355 rm -rf conftest*
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4356 echo "$ac_t""yes" 1>&6
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4357 { test "$extra_verbose" = "yes" && cat << \EOF
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4358 Defining HAVE_INTPTR_T_IN_SYS_TYPES_H = 1
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4359 EOF
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4360 cat >> confdefs.h <<\EOF
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4361 #define HAVE_INTPTR_T_IN_SYS_TYPES_H 1
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4362 EOF
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4363 }
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4364
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4365 else
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4366 echo "configure: failed program was:" >&5
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4367 cat conftest.$ac_ext >&5
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4368 rm -rf conftest*
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4369 echo "$ac_t""no" 1>&6
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4370 fi
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4371 rm -f conftest*
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4372 fi
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
4373
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4374 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4375 echo "configure:4376: checking for socklen_t" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4376 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4377 #line 4378 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4378 #include "confdefs.h"
1427
5d62849e7275 [xemacs-hg @ 2003-04-24 05:26:40 by youngs]
youngs
parents: 1385
diff changeset
4379 #include <sys/types.h>
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4380 #include <sys/socket.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4381 socklen_t x;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4382
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4383 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4384
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4385 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4386 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4387 if { (eval echo configure:4388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4388 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4389 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4390 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4391 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4392 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4393 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4394
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4395 cat > conftest.$ac_ext <<EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4396 #line 4397 "configure"
1427
5d62849e7275 [xemacs-hg @ 2003-04-24 05:26:40 by youngs]
youngs
parents: 1385
diff changeset
4397 #include "confdefs.h"
5d62849e7275 [xemacs-hg @ 2003-04-24 05:26:40 by youngs]
youngs
parents: 1385
diff changeset
4398 #include <sys/types.h>
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4399 #include <sys/socket.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4400 int accept (int, struct sockaddr *, size_t *);
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4401
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4402 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4403
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4404 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4405 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4406 if { (eval echo configure:4407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4407 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4408
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4409 echo "$ac_t""size_t" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4410 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4411 Defining socklen_t = size_t
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4412 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4413 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4414 #define socklen_t size_t
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4415 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4416 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4417
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4418 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4419 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4420 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4421 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4422
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4423 echo "$ac_t""int" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4424 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4425 Defining socklen_t = int
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4426 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4427 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4428 #define socklen_t int
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4429 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4430 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4431
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4432 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4433 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4434 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4435 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4436
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4437 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4438 echo "configure:4439: checking for struct timeval" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4439 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4440 #line 4441 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4441 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4442 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4443 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4444 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4445 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4446 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4447 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4448 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4449 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4450 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4451 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4452 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4453 static struct timeval x; x.tv_sec = x.tv_usec;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4454 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4455 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4456 if { (eval echo configure:4457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4457 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4458 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4459 HAVE_TIMEVAL=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4460 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4461 Defining HAVE_TIMEVAL
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4462 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4463 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4464 #define HAVE_TIMEVAL 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4465 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4466 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4467
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4468 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4469 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4470 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4471 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4472 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4473 HAVE_TIMEVAL=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4474 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4475 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4476
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4477 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4478 echo "configure:4479: checking whether struct tm is in sys/time.h or time.h" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4479
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4480 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4481 #line 4482 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4482 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4483 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4484 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4485 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4486 struct tm *tp; tp->tm_sec;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4487 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4488 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4489 if { (eval echo configure:4490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4490 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4491 ac_cv_struct_tm=time.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4492 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4493 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4494 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4495 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4496 ac_cv_struct_tm=sys/time.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4497 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4498 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4499
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4500 echo "$ac_t""$ac_cv_struct_tm" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4501 if test $ac_cv_struct_tm = sys/time.h; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4502 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4503 Defining TM_IN_SYS_TIME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4504 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4505 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4506 #define TM_IN_SYS_TIME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4507 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4508 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4509
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4510 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4511
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4512 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4513 echo "configure:4514: checking for tm_zone in struct tm" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4514
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4515 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4516 #line 4517 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4517 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4518 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4519 #include <$ac_cv_struct_tm>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4520 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4521 struct tm tm; tm.tm_zone;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4522 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4523 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4524 if { (eval echo configure:4525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4525 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4526 ac_cv_struct_tm_zone=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4527 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4528 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4529 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4530 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4531 ac_cv_struct_tm_zone=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4532 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4533 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4534
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4535 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4536 if test "$ac_cv_struct_tm_zone" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4537 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4538 Defining HAVE_TM_ZONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4539 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4540 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4541 #define HAVE_TM_ZONE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4542 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4543 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4544
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4545 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4546 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4547 echo "configure:4548: checking for tzname" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4548
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4549 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4550 #line 4551 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4551 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4552 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4553 #ifndef tzname /* For SGI. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4554 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4555 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4556 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4557 atoi(*tzname);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4558 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4559 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4560 if { (eval echo configure:4561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4561 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4562 ac_cv_var_tzname=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4563 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4564 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4565 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4566 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4567 ac_cv_var_tzname=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4568 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4569 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4570
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4571 echo "$ac_t""$ac_cv_var_tzname" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4572 if test $ac_cv_var_tzname = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4573 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4574 Defining HAVE_TZNAME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4575 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4576 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4577 #define HAVE_TZNAME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4578 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4579 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4580
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4581 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4582 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4583
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4584
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4585 echo $ac_n "checking for working const""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4586 echo "configure:4587: checking for working const" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4587
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4588 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4589 #line 4590 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4590 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4591
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4592 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4593
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4594 /* Ultrix mips cc rejects this. */
744
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
4595 typedef int charset[2]; const charset x;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4596 /* SunOS 4.1.1 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4597 char const *const *ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4598 char **p;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4599 /* NEC SVR4.0.2 mips cc rejects this. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4600 struct point {int x, y;};
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4601 static struct point const zero = {0,0};
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4602 /* AIX XL C 1.02.0.0 rejects this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4603 It does not let you subtract one const X* pointer from another in an arm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4604 of an if-expression whose if-part is not a constant expression */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4605 const char *g = "string";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4606 ccp = &g + (g ? g-g : 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4607 /* HPUX 7.0 cc rejects these. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4608 ++ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4609 p = (char**) ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4610 ccp = (char const *const *) p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4611 { /* SCO 3.2v4 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4612 char *t;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4613 char const *s = 0 ? (char *) 0 : (char const *) 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4614
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4615 *t++ = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4616 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4617 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4618 int x[] = {25, 17};
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4619 const int *foo = &x[0];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4620 ++foo;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4621 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4622 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4623 typedef const int *iptr;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4624 iptr p = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4625 ++p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4626 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4627 { /* AIX XL C 1.02.0.0 rejects this saying
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4628 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4629 struct s { int j; const int *ap[3]; };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4630 struct s *b; b->j = 5;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4631 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4632 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4633 const int foo = 10;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4634 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4635
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4636 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4637 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4638 if { (eval echo configure:4639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4639 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4640 ac_cv_c_const=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4641 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4642 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4643 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4644 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4645 ac_cv_c_const=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4646 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4647 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4648
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4649 echo "$ac_t""$ac_cv_c_const" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4650 if test $ac_cv_c_const = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4651 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4652 Defining const =
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4653 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4654 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4655 #define const
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4656 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4657 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4658
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4659 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4660
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4661
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4662 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4663 echo "configure:4664: checking whether ${MAKE-make} sets \${MAKE}" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4664 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4665
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4666 cat > conftestmake <<\EOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4667 all:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4668 @echo 'ac_maketemp="${MAKE}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4669 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4670 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4671 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4672 if test -n "$ac_maketemp"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4673 eval ac_cv_prog_make_${ac_make}_set=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4674 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4675 eval ac_cv_prog_make_${ac_make}_set=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4676 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4677 rm -f conftestmake
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4678 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4679 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4680 SET_MAKE=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4681 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4682 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4683 SET_MAKE="MAKE=${MAKE-make}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4684 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4685
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4686
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4687 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4688 echo "configure:4689: checking whether byte ordering is bigendian" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4689
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4690 ac_cv_c_bigendian=unknown
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4691 # See if sys/param.h defines the BYTE_ORDER macro.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4692 cat > conftest.$ac_ext <<EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4693 #line 4694 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4694 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4695 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4696 #include <sys/param.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4697 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4698
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4699 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4700 bogus endian macros
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4701 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4702 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4703 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4704 if { (eval echo configure:4705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4705 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4706 # It does; now see whether it defined to BIG_ENDIAN or not.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4707 cat > conftest.$ac_ext <<EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4708 #line 4709 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4709 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4710 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4711 #include <sys/param.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4712 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4713
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4714 #if BYTE_ORDER != BIG_ENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4715 not big endian
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4716 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4717 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4718 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4719 if { (eval echo configure:4720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4720 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4721 ac_cv_c_bigendian=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4722 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4723 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4724 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4725 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4726 ac_cv_c_bigendian=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4727 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4728 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4729 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4730 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4731 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4732 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4733 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4734 if test $ac_cv_c_bigendian = unknown; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4735 cat > conftest.$ac_ext <<EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4736 #line 4737 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4737 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4738 main () {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4739 /* Are we little or big endian? From Harbison&Steele. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4740 union
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4741 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4742 long l;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4743 char c[sizeof (long)];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4744 } u;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4745 u.l = 1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4746 exit (u.c[sizeof (long) - 1] == 1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4747 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4748 EOF
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4749 if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4750 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4751 ac_cv_c_bigendian=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4752 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4753 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4754 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4755 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4756 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4757 ac_cv_c_bigendian=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4758 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4759 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4760 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4761
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4762 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4763 if test $ac_cv_c_bigendian = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4764 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4765 Defining WORDS_BIGENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4766 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4767 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4768 #define WORDS_BIGENDIAN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4769 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4770 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4771
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4772 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4773
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4774
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4775 echo $ac_n "checking size of short""... $ac_c" 1>&6
2006
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4776 echo "configure:4777: checking size of short" >&5
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4777
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4778 cat > conftest.$ac_ext <<EOF
1ea9c87af805 [xemacs-hg @ 2004-04-12 10:11:47 by stephent]
stephent
parents: 1998
diff changeset
4779 #line 4780 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4780 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4781 #include <stdio.h>
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4782 #include <sys/types.h>
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4783 main()
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4784 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4785 FILE *f=fopen("conftestval", "w");
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4786 if (!f) exit(1);
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4787 fprintf(f, "%d\n", sizeof(short));
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4788 exit(0);
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4789 }
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4790 EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4791 if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4792 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4793 ac_cv_sizeof_short=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4794 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4795 conftest_rc="$?"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4796 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4797 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4798 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4799 ac_cv_sizeof_short=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4800 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4801 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4802 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4803 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4804 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4805 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4806 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4807 #define SIZEOF_SHORT $ac_cv_sizeof_short
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4808 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4809 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4810
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4811
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4812 if test "$ac_cv_sizeof_short" = 0; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4813 echo ""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4814 echo "*** PANIC *** Configure tests are not working - compiler is broken."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4815 echo "*** PANIC *** Please examine config.log for compilation errors."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4816 exit 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4817 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4818 echo $ac_n "checking size of int""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4819 echo "configure:4820: checking size of int" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4820
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4821 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4822 #line 4823 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4823 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4824 #include <stdio.h>
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4825 #include <sys/types.h>
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4826 main()
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4827 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4828 FILE *f=fopen("conftestval", "w");
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4829 if (!f) exit(1);
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4830 fprintf(f, "%d\n", sizeof(int));
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4831 exit(0);
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4832 }
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4833 EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4834 if { (eval echo configure:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4835 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4836 ac_cv_sizeof_int=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4837 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4838 conftest_rc="$?"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4839 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4840 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4841 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4842 ac_cv_sizeof_int=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4843 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4844 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4845 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4846 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4847 Defining SIZEOF_INT = $ac_cv_sizeof_int
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4848 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4849 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4850 #define SIZEOF_INT $ac_cv_sizeof_int
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4851 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4852 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4853
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4854
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4855 echo $ac_n "checking size of long""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4856 echo "configure:4857: checking size of long" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4857
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4858 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4859 #line 4860 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4860 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4861 #include <stdio.h>
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4862 #include <sys/types.h>
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4863 main()
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4864 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4865 FILE *f=fopen("conftestval", "w");
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4866 if (!f) exit(1);
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4867 fprintf(f, "%d\n", sizeof(long));
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4868 exit(0);
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4869 }
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4870 EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4871 if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4872 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4873 ac_cv_sizeof_long=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4874 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4875 conftest_rc="$?"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4876 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4877 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4878 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4879 ac_cv_sizeof_long=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4880 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4881 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4882 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4883 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4884 Defining SIZEOF_LONG = $ac_cv_sizeof_long
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4885 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4886 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4887 #define SIZEOF_LONG $ac_cv_sizeof_long
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4888 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4889 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4890
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4891
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4892 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4893 echo "configure:4894: checking size of long long" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4894
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4895 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4896 #line 4897 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4897 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4898 #include <stdio.h>
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4899 #include <sys/types.h>
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4900 main()
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4901 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4902 FILE *f=fopen("conftestval", "w");
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4903 if (!f) exit(1);
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4904 fprintf(f, "%d\n", sizeof(long long));
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4905 exit(0);
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4906 }
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4907 EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4909 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4910 ac_cv_sizeof_long_long=`cat conftestval`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4911 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4912 conftest_rc="$?"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4913 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4914 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4915 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4916 ac_cv_sizeof_long_long=0
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4917 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4918 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4919 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4920 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4921 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4922 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4923 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4924 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4925 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4926 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4927
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4928
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4929 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4930 echo "configure:4931: checking size of void *" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4931
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4932 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4933 #line 4934 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4934 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4935 #include <stdio.h>
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4936 #include <sys/types.h>
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4937 main()
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4938 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4939 FILE *f=fopen("conftestval", "w");
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4940 if (!f) exit(1);
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4941 fprintf(f, "%d\n", sizeof(void *));
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4942 exit(0);
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4943 }
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4944 EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4945 if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4946 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4947 ac_cv_sizeof_void_p=`cat conftestval`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4948 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4949 conftest_rc="$?"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4950 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4951 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4952 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4953 ac_cv_sizeof_void_p=0
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4954 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4955 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4956 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4957 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4958 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4959 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4960 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4961 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4962 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4963 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4964
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4965
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4966 echo $ac_n "checking size of double""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4967 echo "configure:4968: checking size of double" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4968
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4969 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4970 #line 4971 "configure"
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4971 #include "confdefs.h"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4972 #include <stdio.h>
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4973 #include <sys/types.h>
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4974 main()
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4975 {
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4976 FILE *f=fopen("conftestval", "w");
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4977 if (!f) exit(1);
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4978 fprintf(f, "%d\n", sizeof(double));
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4979 exit(0);
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4980 }
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4981 EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
4982 if { (eval echo configure:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4983 then
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4984 ac_cv_sizeof_double=`cat conftestval`
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4985 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4986 conftest_rc="$?"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4987 echo "configure: failed program was:" >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4988 cat conftest.$ac_ext >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4989 rm -fr conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4990 ac_cv_sizeof_double=0
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4991 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4992 rm -fr conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4993 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4994 { test "$extra_verbose" = "yes" && cat << EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4995 Defining SIZEOF_DOUBLE = $ac_cv_sizeof_double
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4996 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4997 cat >> confdefs.h <<EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4998 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
4999 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
5000 }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
5001
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
5002
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5003
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5004 echo $ac_n "checking for long file names""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5005 echo "configure:5006: checking for long file names" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5006
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5007 ac_cv_sys_long_file_names=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5008 # Test for long file names in all the places we know might matter:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5009 # . the current directory, where building will happen
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5010 # $prefix/lib where we will be installing things
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5011 # $exec_prefix/lib likewise
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5012 # eval it to expand exec_prefix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5013 # $TMPDIR if set, where it might want to write temporary files
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5014 # if $TMPDIR is not set:
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5015 # /tmp where it might want to write temporary files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5016 # /var/tmp likewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5017 # /usr/tmp likewise
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5018 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5019 ac_tmpdirs="$TMPDIR"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5020 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5021 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5022 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5023 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5024 test -d $ac_dir || continue
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5025 test -w $ac_dir || continue # It is less confusing to not echo anything here.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5026 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5027 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5028 val=`cat $ac_dir/conftest9012345 2>/dev/null`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5029 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5030 ac_cv_sys_long_file_names=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5031 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5032 break
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5033 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5034 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5035 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5036
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5037 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5038 if test $ac_cv_sys_long_file_names = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5039 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5040 Defining HAVE_LONG_FILE_NAMES
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5041 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5042 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5043 #define HAVE_LONG_FILE_NAMES 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5044 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5045 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5046
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5047 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5048
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5049
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5050 echo $ac_n "checking for sin""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5051 echo "configure:5052: checking for sin" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5052
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5053 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5054 #line 5055 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5055 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5056 /* System header to define __stub macros and hopefully few prototypes,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5057 which can conflict with char sin(); below. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5058 #include <assert.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5059 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5060 /* We use char because int might match the return type of a gcc2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5061 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5062 char sin();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5063
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5064 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5065
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5066 /* The GNU C library defines this for functions which it implements
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5067 to always fail with ENOSYS. Some functions are actually named
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5068 something starting with __ and the normal name is an alias. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5069 #if defined (__stub_sin) || defined (__stub___sin)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5070 choke me
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5071 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5072 sin();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5073 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5074
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5075 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5076 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5077 if { (eval echo configure:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5078 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5079 eval "ac_cv_func_sin=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5080 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5081 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5082 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5083 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5084 eval "ac_cv_func_sin=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5085 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5086 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5087
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5088 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5089 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5090 :
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5091 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5092 echo "$ac_t""no" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5093
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
5094 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5095 echo "configure:5096: checking for sin in -lm" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
5096 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5097
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5098 xe_check_libs=" -lm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5099 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5100 #line 5101 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5101 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5102 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5103 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5104 builtin and then its argument prototype would still apply. */
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
5105 char sin();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5106
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5107 int main() {
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
5108 sin()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5109 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5110 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5111 if { (eval echo configure:5112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5112 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5113 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5114 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5115 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5116 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5117 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5118 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5119 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5120 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5121 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5122
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5124 echo "$ac_t""yes" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5125 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5127 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5128 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5129 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5130 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5131 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5132 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5133 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5134
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5135 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5136
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5137 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5138 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5139 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5140
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5141
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5142 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
5143
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5144
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 1111
diff changeset
5145 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5146 #line 5147 "configure"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5147 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5148 #include <math.h>
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5149 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5150 return atanh(1.0) + asinh(1.0) + acosh(1.0);
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5151 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5152 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5153 if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5154 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5155 { test "$extra_verbose" = "yes" && cat << \EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5156 Defining HAVE_INVERSE_HYPERBOLIC
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5157 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5158 cat >> confdefs.h <<\EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5159 #define HAVE_INVERSE_HYPERBOLIC 1
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5160 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5161 }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5162
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5163 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5164 echo "configure: failed program was:" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5165 cat conftest.$ac_ext >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5166 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5167 rm -f conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
5168
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5169 for ac_func in mkstemp
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5170 do
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5172 echo "configure:5173: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5173
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5174 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5175 #line 5176 "configure"
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5176 #include "confdefs.h"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5177 /* System header to define __stub macros and hopefully few prototypes,
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5178 which can conflict with char $ac_func(); below. */
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5179 #include <assert.h>
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5180 /* Override any gcc2 internal prototype to avoid an error. */
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5181 /* We use char because int might match the return type of a gcc2
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5182 builtin and then its argument prototype would still apply. */
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5183 char $ac_func();
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5184
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5185 int main() {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5186
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5187 /* The GNU C library defines this for functions which it implements
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5188 to always fail with ENOSYS. Some functions are actually named
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5189 something starting with __ and the normal name is an alias. */
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5191 choke me
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5192 #else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5193 $ac_func();
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5194 #endif
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5195
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5196 ; return 0; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5197 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5199 rm -rf conftest*
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5200 eval "ac_cv_func_$ac_func=yes"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5201 else
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5202 echo "configure: failed program was:" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5203 cat conftest.$ac_ext >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5204 rm -rf conftest*
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5205 eval "ac_cv_func_$ac_func=no"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5206 fi
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5207 rm -f conftest*
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5208
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5210 echo "$ac_t""yes" 1>&6
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5212 { test "$extra_verbose" = "yes" && cat << EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5213 Defining $ac_tr_func
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5214 EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5215 cat >> confdefs.h <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5216 #define $ac_tr_func 1
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5217 EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5218 }
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5219
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5220 else
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5221 echo "$ac_t""no" 1>&6
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5222 fi
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5223 done
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5224
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5225
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5226 echo "checking type of mail spool file locking" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5227 echo "configure:5228: checking type of mail spool file locking" >&5
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5228 for ac_func in lockf flock
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5229 do
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5231 echo "configure:5232: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5232
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5233 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5234 #line 5235 "configure"
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5235 #include "confdefs.h"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5236 /* System header to define __stub macros and hopefully few prototypes,
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5237 which can conflict with char $ac_func(); below. */
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5238 #include <assert.h>
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5239 /* Override any gcc2 internal prototype to avoid an error. */
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5240 /* We use char because int might match the return type of a gcc2
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5241 builtin and then its argument prototype would still apply. */
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5242 char $ac_func();
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5243
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5244 int main() {
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5245
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5246 /* The GNU C library defines this for functions which it implements
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5247 to always fail with ENOSYS. Some functions are actually named
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5248 something starting with __ and the normal name is an alias. */
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5250 choke me
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5251 #else
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5252 $ac_func();
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5253 #endif
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5254
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5255 ; return 0; }
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5256 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5257 if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5258 rm -rf conftest*
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5259 eval "ac_cv_func_$ac_func=yes"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5260 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5261 echo "configure: failed program was:" >&5
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5262 cat conftest.$ac_ext >&5
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5263 rm -rf conftest*
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5264 eval "ac_cv_func_$ac_func=no"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5265 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5266 rm -f conftest*
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5267
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5269 echo "$ac_t""yes" 1>&6
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5271 { test "$extra_verbose" = "yes" && cat << EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5272 Defining $ac_tr_func
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5273 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5274 cat >> confdefs.h <<EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5275 #define $ac_tr_func 1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5276 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5277 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5278
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5279 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5280 echo "$ac_t""no" 1>&6
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5281 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5282 done
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5283
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5284 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5285 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5286 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5287 if test -z "$mail_locking"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5288 case "$opsys" in cygwin* | mingw*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5289 mail_locking=pop ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5290 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5291 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5292
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5293 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5294 Defining MAIL_LOCK_LOCKF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5295 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5296 cat >> confdefs.h <<\EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5297 #define MAIL_LOCK_LOCKF 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5298 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5299 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5300
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5301 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5302 Defining MAIL_LOCK_FLOCK
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5303 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5304 cat >> confdefs.h <<\EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5305 #define MAIL_LOCK_FLOCK 1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5306 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5307 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5308
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5309 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5310 Defining MAIL_LOCK_LOCKING
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5311 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5312 cat >> confdefs.h <<\EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5313 #define MAIL_LOCK_LOCKING 1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5314 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5315 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5316
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5317 elif test "$mail_locking" = "pop"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5318 with_pop=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5319 mail_locking=
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5320 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5321 Defining MAIL_LOCK_DOT
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5322 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5323 cat >> confdefs.h <<\EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5324 #define MAIL_LOCK_DOT 1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5325 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5326 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5327
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5328 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5329 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5330 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5331 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5332 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5333 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
5334 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5335
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5336 case "$opsys" in decosf*)
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5337
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5338 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5339 echo "configure:5340: checking for cma_open in -lpthreads" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5340 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5341
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5342 xe_check_libs=" -lpthreads "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5343 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5344 #line 5345 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5345 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5346 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5347 /* We use char because int might match the return type of a gcc2
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5348 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5349 char cma_open();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5350
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5351 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5352 cma_open()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5353 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5354 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5355 if { (eval echo configure:5356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5356 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5357 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5358 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5359 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5360 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5361 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5362 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5363 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5364 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5365 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5366
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5368 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5369 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5370 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5371 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5372 Defining $ac_tr_lib
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5373 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5374 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5375 #define $ac_tr_lib 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5376 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5377 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5378
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5379 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5380
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5381 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5382 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5383 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5384
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5385
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5386 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5387 c_switch_site="$c_switch_site -threads" ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5388 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5389
708
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
5390
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5391 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5392 echo "configure:5393: checking whether the -xildoff compiler flag is required" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5393 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5394 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5395 then echo "$ac_t""no" 1>&6;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5396 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5397 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5398 else echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5399 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5400
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5401 if test "$opsys" = "sol2"; then
1692
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
5402 if test "$os_release" -ge 506; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5403 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5404 echo "configure:5405: checking for \"-z ignore\" linker flag" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5405 case "`ld -h 2>&1`" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5406 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5407 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5408 *) echo "$ac_t""no" 1>&6 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5409 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5410 fi
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5411 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5412
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5413
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5414 echo "checking "for specified window system"" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5415 echo "configure:5416: checking "for specified window system"" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5416
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5417
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5418 GNOME_CONFIG=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5419 GTK_CONFIG=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5420
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5421 if test "$with_gnome" != "no"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5422 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5423 echo "configure:5424: checking for GNOME configuration script" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5424 for possible in gnome-config
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5425 do
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5426 possible_version=`${possible} --version 2> /dev/null`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5427 if test "x${possible_version}" != "x"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5428 GNOME_CONFIG="${possible}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5429 with_gnome=yes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5430 with_gtk=yes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5431 break
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5432 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5433 done
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5434 echo "$ac_t""${GNOME_CONFIG}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5435 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5436
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5437 if test "${GNOME_CONFIG}" != "no"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5438 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5439 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5440 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5441 Defining HAVE_GNOME
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5442 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5443 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5444 #define HAVE_GNOME 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5445 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5446 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5447
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5448 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5449 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5450 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5451
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5452 if test "$with_gtk" != "no";then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5453 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5454 echo "configure:5455: checking for GTK configuration script" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5455 for possible in gtk12-config gtk14-config gtk-config
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5456 do
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5457 possible_version=`${possible} --version 2> /dev/null`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5458 if test "x${possible_version}" != "x"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5459 GTK_CONFIG="${possible}"
527
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5460 case "${possible_version}" in
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5461 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5462 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5463 1.2.*)
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5464 with_gtk=yes
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5465 break
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5466 ;;
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5467 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5468 esac
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5469 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5470 done
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5471 echo "$ac_t""${GTK_CONFIG}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5472 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5473
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5474 if test "${GTK_CONFIG}" != "no"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5475 echo $ac_n "checking gtk version""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5476 echo "configure:5477: checking gtk version" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5477 GTK_VERSION=`${GTK_CONFIG} --version`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5478 echo "$ac_t""${GTK_VERSION}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5479
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5480 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5481 echo "configure:5482: checking gtk libs" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5482 GTK_LIBS=`${GTK_CONFIG} --libs`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5483 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5484 echo "$ac_t""${GTK_LIBS}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5485
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5486 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5487 echo "configure:5488: checking gtk cflags" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5488 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
720
128e95ac472f [xemacs-hg @ 2001-12-30 04:12:04 by wmperry]
wmperry
parents: 708
diff changeset
5489 if test "$GCC" = "yes"; then
128e95ac472f [xemacs-hg @ 2001-12-30 04:12:04 by wmperry]
wmperry
parents: 708
diff changeset
5490 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
128e95ac472f [xemacs-hg @ 2001-12-30 04:12:04 by wmperry]
wmperry
parents: 708
diff changeset
5491 fi
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5492 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5493 echo "$ac_t""${GTK_CFLAGS}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5494
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5495
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5496 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5497 echo "configure:5498: checking for main in -lgdk_imlib" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5498 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5499
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5500 xe_check_libs=" -lgdk_imlib "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5501 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5502 #line 5503 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5503 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5504
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5505 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5506 main()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5507 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5508 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5509 if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5510 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5511 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5512 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5513 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5514 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5515 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5516 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5517 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5518 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5519 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5520
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5522 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5523 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5524 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5525 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5526 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5527
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5528
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5529
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5530 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5531 echo "configure:5532: checking for Imlib_init in -lImlib" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5532 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5533
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5534 xe_check_libs=" -lImlib "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5535 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5536 #line 5537 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5537 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5538 /* Override any gcc2 internal prototype to avoid an error. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5539 /* We use char because int might match the return type of a gcc2
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5540 builtin and then its argument prototype would still apply. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5541 char Imlib_init();
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5542
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5543 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5544 Imlib_init()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5545 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5546 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5547 if { (eval echo configure:5548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5548 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5549 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5550 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5551 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5552 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5553 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5554 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5555 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5556 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5557 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5558
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5560 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5561 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5562 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5563 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5564 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5565
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5566
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5567 for ac_func in gdk_imlib_init
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5568 do
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5570 echo "configure:5571: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5571
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5572 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5573 #line 5574 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5574 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5575 /* System header to define __stub macros and hopefully few prototypes,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5576 which can conflict with char $ac_func(); below. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5577 #include <assert.h>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5578 /* Override any gcc2 internal prototype to avoid an error. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5579 /* We use char because int might match the return type of a gcc2
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5580 builtin and then its argument prototype would still apply. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5581 char $ac_func();
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5582
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5583 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5584
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5585 /* The GNU C library defines this for functions which it implements
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5586 to always fail with ENOSYS. Some functions are actually named
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5587 something starting with __ and the normal name is an alias. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5589 choke me
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5590 #else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5591 $ac_func();
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5592 #endif
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5593
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5594 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5595 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5596 if { (eval echo configure:5597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5597 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5598 eval "ac_cv_func_$ac_func=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5599 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5600 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5601 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5602 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5603 eval "ac_cv_func_$ac_func=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5604 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5605 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5606
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5608 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5610 { test "$extra_verbose" = "yes" && cat << EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5611 Defining $ac_tr_func
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5612 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5613 cat >> confdefs.h <<EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5614 #define $ac_tr_func 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5615 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5616 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5617
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5618 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5619 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5620 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5621 done
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5622
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5623
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5624 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5625 Defining HAVE_XPM
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5626 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5627 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5628 #define HAVE_XPM 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5629 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5630 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5631
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5632 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5633 Defining HAVE_GTK
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5634 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5635 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5636 #define HAVE_GTK 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5637 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5638 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5639
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5640
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5641
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5642 window_system=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5643 with_gtk=yes
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5644 if test "$with_x11" != "no"; then
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5645 echo "configure: warning: Configuring GTK, forcing with_x11 to no" 1>&2
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5646 with_x11=no
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5647 fi
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5648
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5649 for feature in scrollbars toolbars menubars dialogs widgets
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5650 do
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5651 eval "feature_value=\${with_${feature}}"
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5652 case "${feature_value}" in
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5653 yes|no|gtk|"" )
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5654 ;;
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5655 * )
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5656 feature_conflict_with_gtk=yes
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5657 echo "configure: warning: --with-${feature}=${feature_value} is incompatible with --with-gtk" 1>&2 ;;
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5658 esac
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5659 done
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5660 if test "${feature_conflict_with_gtk}" = "yes"; then
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5661 { echo "Error:" One or more GUI toolkit features conflict with GTK >&2; exit 1; }
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5662 fi
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5663
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5664 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5665 test "${with_toolbars}" != "no" && with_toolbars=gtk
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5666 test "${with_menubars}" != "no" && with_menubars=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5667 test "${with_dialogs}" != "no" && with_dialogs=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5668 test "${with_widgets}" != "no" && with_widgets=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5669
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5670 OLD_CFLAGS="${CFLAGS}"
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
5671 OLD_CPPFLAGS="${CPPFLAGS}"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5672 OLD_LDFLAGS="${LDFLAGS}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5673 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
5674 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5675 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5676 for ac_hdr in glade/glade.h glade.h
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5677 do
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5680 echo "configure:5681: checking for $ac_hdr" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5681
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5682 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5683 #line 5684 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5684 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5685 #include <$ac_hdr>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5686 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5688 { (eval echo configure:5689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5690 if test -z "$ac_err"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5691 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5692 eval "ac_cv_header_$ac_safe=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5693 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5694 echo "$ac_err" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5695 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5696 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5697 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5698 eval "ac_cv_header_$ac_safe=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5699 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5700 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5702 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5704 { test "$extra_verbose" = "yes" && cat << EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5705 Defining $ac_tr_hdr
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5706 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5707 cat >> confdefs.h <<EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5708 #define $ac_tr_hdr 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5709 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5710 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5711
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5712 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5713 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5714 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5715 done
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5716
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5717
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5718 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5719 echo "configure:5720: checking for main in -lxml" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5720 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5721
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5722 xe_check_libs=" -lxml "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5723 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5724 #line 5725 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5725 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5726
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5727 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5728 main()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5729 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5730 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5732 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5733 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5734 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5735 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5736 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5737 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5738 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5739 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5740 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5741 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5742
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5744 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5745 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5746 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5747 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5748 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5749
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5750
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5751
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5752 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5753 echo "configure:5754: checking for main in -lglade" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5754 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5755
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5756 xe_check_libs=" -lglade "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5757 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5758 #line 5759 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5759 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5760
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5761 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5762 main()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5763 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5764 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5766 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5767 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5768 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5769 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5770 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5771 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5772 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5773 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5774 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5775 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5776
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5778 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5779 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5780 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5781 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5782 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5783
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5784
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5785
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5786 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5787 echo "configure:5788: checking for main in -lglade-gnome" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5788 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5789
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5790 xe_check_libs=" -lglade-gnome "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5791 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5792 #line 5793 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5793 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5794
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5795 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5796 main()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5797 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5798 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5799 if { (eval echo configure:5800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5800 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5801 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5802 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5803 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5804 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5805 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5806 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5807 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5808 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5809 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5810
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5812 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5813 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5814 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5815 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5816 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5817
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5818
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5819 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5820 #line 5821 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5821 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5822 #include <glade/glade-xml.h>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5823 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5825 egrep "char \*txtdomain;" >/dev/null 2>&1; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5826 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5827 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5828 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5829 Defining LIBGLADE_XML_TXTDOMAIN = 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5830 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5831 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5832 #define LIBGLADE_XML_TXTDOMAIN 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5833 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5834 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5835
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5836 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5837 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5838 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5839 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5840 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5841
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5842 CFLAGS="${OLD_CFLAGS}"
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
5843 CPPFLAGS="${OLD_CPPFLAGS}"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5844 LDFLAGS="${OLD_LDFLAGS}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5845 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5846
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5847
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5848 if test "$with_x11" != "no"; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5849 test "$x_includes $x_libraries" != "NONE NONE" && \
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5850 window_system=x11 with_x11=yes
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5851
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5852
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5853 if test "$x_includes $x_libraries" = "NONE NONE" \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5854 -a -n "$OPENWINHOME" \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5855 -a "$OPENWINHOME" != "/usr/openwin" \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5856 -a -d "$OPENWINHOME"; then
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5857 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5858 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5859 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5860 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5861
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5862 if test "$x_includes" = "NONE"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5863 for dir in "/usr/X11" "/usr/X11R6"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5864 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5865 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5866 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5867
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5868 if test "$x_libraries" = "NONE"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5869 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5870 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5871 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5872 fi
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5873
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5874 # If we find X, set shell vars x_includes and x_libraries to the
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5875 # paths, otherwise set no_x=yes.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5876 # Uses ac_ vars as temps to allow command line to override cache and checks.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5877 # --without-x overrides everything else, but does not touch the cache.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5878 echo $ac_n "checking for X""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5879 echo "configure:5880: checking for X" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5880
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5881 # Check whether --with-x or --without-x was given.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5882 if test "${with_x+set}" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5883 withval="$with_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5884 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5885 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5886
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5887 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5888 if test "x$with_x" = xno; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5889 # The user explicitly disabled X.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5890 have_x=disabled
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5891 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5892 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5893 # Both variables are already set.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5894 have_x=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5895 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5896
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5897 # One or both of the vars are not set, and there is no cached value.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5898 ac_x_includes=NO ac_x_libraries=NO
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5899 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5900 if mkdir conftestdir; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5901 cd conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5902 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5903 cat > Imakefile <<'EOF'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5904 acfindx:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5905 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5906 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5907 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5908 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5909 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5910 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5911 for ac_extension in a so sl; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5912 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5913 test -f $ac_im_libdir/libX11.$ac_extension; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5914 ac_im_usrlibdir=$ac_im_libdir; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5915 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5916 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5917 # Screen out bogus values from the imake configuration. They are
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5918 # bogus both because they are the default anyway, and because
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5919 # using them would break gcc on systems where it needs fixed includes.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5920 case "$ac_im_incroot" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5921 /usr/include) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5922 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5923 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5924 case "$ac_im_usrlibdir" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5925 /usr/lib | /lib) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5926 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5927 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5928 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5929 cd ..
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5930 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5931 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5932
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5933 if test "$ac_x_includes" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5934 # Guess where to find include files, by looking for this one X11 .h file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5935 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5936
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5937 # First, try using that file with no special directory specified.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5938 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5939 #line 5940 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5940 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5941 #include <$x_direct_test_include>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5942 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
5944 { (eval echo configure:5945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
5945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5946 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5947 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5948 # We can compile using X headers with no special include directory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5949 ac_x_includes=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5950 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5951 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5952 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5953 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5954 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5955 # Look for the header file in a standard set of common directories.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5956 # Check X11 before X11Rn because it is often a symlink to the current release.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5957 for ac_dir in \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5958 /usr/X11/include \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5959 /usr/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5960 /usr/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5961 /usr/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5962 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5963 /usr/include/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5964 /usr/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5965 /usr/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5966 /usr/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5967 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5968 /usr/local/X11/include \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5969 /usr/local/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5970 /usr/local/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5971 /usr/local/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5972 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5973 /usr/local/include/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5974 /usr/local/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5975 /usr/local/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5976 /usr/local/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5977 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5978 /usr/X386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5979 /usr/x386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5980 /usr/XFree86/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5981 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5982 /usr/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5983 /usr/local/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5984 /usr/unsupported/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5985 /usr/athena/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5986 /usr/local/x11r5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5987 /usr/lpp/Xamples/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5988 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5989 /usr/openwin/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5990 /usr/openwin/share/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5991 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5992 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5993 if test -r "$ac_dir/$x_direct_test_include"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5994 ac_x_includes=$ac_dir
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5995 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5996 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5997 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5998 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5999 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6000 fi # $ac_x_includes = NO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6001
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6002 if test "$ac_x_libraries" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6003 # Check for the libraries.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6004
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6005 test -z "$x_direct_test_library" && x_direct_test_library=Xt
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6006 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6007
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6008 # See if we find them without any special options.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6009 # Don't add to $LIBS permanently.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6010 ac_save_LIBS="$LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6011 LIBS="-l$x_direct_test_library $LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6012 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6013 #line 6014 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6014 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6015
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6016 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6017 ${x_direct_test_function}()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6018 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6019 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6020 if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6021 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6022 LIBS="$ac_save_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6023 # We can link X programs with no special library path.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6024 ac_x_libraries=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6025 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6026 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6027 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6028 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6029 LIBS="$ac_save_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6030 # First see if replacing the include by lib works.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6031 # Check X11 before X11Rn because it is often a symlink to the current release.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6032 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6033 /usr/X11/lib \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6034 /usr/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6035 /usr/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6036 /usr/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6037 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6038 /usr/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6039 /usr/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6040 /usr/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6041 /usr/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6042 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6043 /usr/local/X11/lib \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6044 /usr/local/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6045 /usr/local/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6046 /usr/local/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6047 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6048 /usr/local/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6049 /usr/local/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6050 /usr/local/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6051 /usr/local/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6052 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6053 /usr/X386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6054 /usr/x386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6055 /usr/XFree86/lib/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6056 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6057 /usr/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6058 /usr/local/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6059 /usr/unsupported/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6060 /usr/athena/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6061 /usr/local/x11r5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6062 /usr/lpp/Xamples/lib \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6063 /lib/usr/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6064 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6065 /usr/openwin/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6066 /usr/openwin/share/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6067 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6068 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6069 for ac_extension in a so sl; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6070 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6071 ac_x_libraries=$ac_dir
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6072 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6073 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6074 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6075 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6076 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6077 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6078 fi # $ac_x_libraries = NO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6079
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6080 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6081 # Didn't find X anywhere. Cache the known absence of X.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6082 ac_cv_have_x="have_x=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6083 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6084 # Record where we found X for the cache.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6085 ac_cv_have_x="have_x=yes \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6086 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6087 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6088 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6089 eval "$ac_cv_have_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6090 fi # $with_x != no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6091
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6092 if test "$have_x" != yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6093 echo "$ac_t""$have_x" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6094 no_x=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6095 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6096 # If each of the values was on the command line, it overrides each guess.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6097 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6098 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6099 # Update the cache value to reflect the command line values.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6100 ac_cv_have_x="have_x=yes \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6101 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6102 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6103 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6104
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6105 if test "$no_x" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6106 # Not all programs may use this symbol, but it does not hurt to define it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6107 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6108 Defining X_DISPLAY_MISSING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6109 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6110 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6111 #define X_DISPLAY_MISSING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6112 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6113 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6114
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6115 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6116 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6117 if test -n "$x_includes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6118 X_CFLAGS="$X_CFLAGS -I$x_includes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6119 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6120
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6121 # It would also be nice to do this for all -L options, not just this one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6122 if test -n "$x_libraries"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6123 X_LIBS="$X_LIBS -L$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6124 # For Solaris; some versions of Sun CC require a space after -R and
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6125 # others require no space. Words are not sufficient . . . .
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6126 case "`(uname -sr) 2>/dev/null`" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6127 "SunOS 5"*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6128 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6129 echo "configure:6130: checking whether -R must be followed by a space" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6130 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6131 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6132 #line 6133 "configure"
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6133 #include "confdefs.h"
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6134
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6135 int main() {
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6136
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6137 ; return 0; }
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6138 EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6139 if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6140 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6141 ac_R_nospace=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6142 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6143 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6144 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6145 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6146 ac_R_nospace=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6147 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6148 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6149 if test $ac_R_nospace = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6150 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6151 X_LIBS="$X_LIBS -R$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6152 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6153 LIBS="$ac_xsave_LIBS -R $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6154 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6155 #line 6156 "configure"
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6156 #include "confdefs.h"
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6157
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6158 int main() {
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6159
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6160 ; return 0; }
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6161 EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6162 if { (eval echo configure:6163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6163 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6164 ac_R_space=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6165 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6166 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6167 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6168 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6169 ac_R_space=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6170 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6171 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6172 if test $ac_R_space = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6173 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6174 X_LIBS="$X_LIBS -R $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6175 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6176 echo "$ac_t""neither works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6177 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6178 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6179 LIBS="$ac_xsave_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6180 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6181 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6182
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6183 # Check for system-dependent libraries X programs must link with.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6184 # Do this before checking for the system-independent R6 libraries
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6185 # (-lICE), since we may need -lsocket or whatever for X linking.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6186
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6187 if test "$ISC" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6188 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6189 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6190 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6191 # libraries were built with DECnet support. And karl@cs.umb.edu says
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6192 # the Alpha needs dnet_stub (dnet does not exist).
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6193 if test "$with_dnet" = "no" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6194 ac_cv_lib_dnet_dnet_ntoa=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6195 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6196
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6197 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6198 echo "configure:6199: checking for dnet_ntoa in -ldnet" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6199 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6200
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6201 xe_check_libs=" -ldnet "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6202 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6203 #line 6204 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6204 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6205 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6206 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6207 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6208 char dnet_ntoa();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6209
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6210 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6211 dnet_ntoa()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6212 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6213 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6214 if { (eval echo configure:6215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6215 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6216 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6217 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6218 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6219 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6220 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6221 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6222 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6223 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6224 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6225
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6227 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6228 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6229 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6230 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6231 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6232
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6233 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6234
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6235 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6236
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6237 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6238 echo "configure:6239: checking for dnet_ntoa in -ldnet_stub" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6239 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6240
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6241 xe_check_libs=" -ldnet_stub "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6242 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6243 #line 6244 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6244 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6245 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6246 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6247 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6248 char dnet_ntoa();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6249
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6250 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6251 dnet_ntoa()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6252 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6253 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6254 if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6255 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6256 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6257 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6258 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6259 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6260 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6261 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6262 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6263 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6264 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6265
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6267 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6268 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6269 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6270 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6271 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6272
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6273
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6274 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6275
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6276 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6277 # to get the SysV transport functions.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6278 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6279 # needs -lnsl.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6280 # The nsl library prevents programs from opening the X display
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6281 # on Irix 5.2, according to dickey@clark.net.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6282 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6283 echo "configure:6284: checking for gethostbyname" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6284
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6285 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6286 #line 6287 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6287 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6288 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6289 which can conflict with char gethostbyname(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6290 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6291 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6292 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6293 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6294 char gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6295
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6296 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6297
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6298 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6299 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6300 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6301 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6302 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6303 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6304 gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6305 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6306
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6307 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6308 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6309 if { (eval echo configure:6310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6310 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6311 eval "ac_cv_func_gethostbyname=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6312 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6313 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6314 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6315 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6316 eval "ac_cv_func_gethostbyname=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6317 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6318 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6319
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6320 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6321 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6322 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6323 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6324 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6325 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6326
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6327 if test $ac_cv_func_gethostbyname = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6328
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6329 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6330 echo "configure:6331: checking for gethostbyname in -lnsl" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6331 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6332
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6333 xe_check_libs=" -lnsl "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6334 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6335 #line 6336 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6336 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6337 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6338 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6339 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6340 char gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6341
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6342 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6343 gethostbyname()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6344 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6345 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6346 if { (eval echo configure:6347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6347 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6348 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6349 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6350 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6351 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6352 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6353 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6354 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6355 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6356 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6357
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6359 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6360 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6361 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6362 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6363 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6364
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6365
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6366 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6367
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6368 # lieder@skyler.mavd.honeywell.com says without -lsocket,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6369 # socket/setsockopt and other routines are undefined under SCO ODT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6370 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6371 # on later versions), says simon@lia.di.epfl.ch: it contains
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6372 # gethostby* variants that don't use the nameserver (or something).
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6373 # -lsocket must be given before -lnsl if both are needed.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6374 # We assume that if connect needs -lnsl, so does gethostbyname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6375 echo $ac_n "checking for connect""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6376 echo "configure:6377: checking for connect" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6377
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6378 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6379 #line 6380 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6380 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6381 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6382 which can conflict with char connect(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6383 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6384 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6385 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6386 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6387 char connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6388
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6389 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6390
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6391 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6392 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6393 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6394 #if defined (__stub_connect) || defined (__stub___connect)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6395 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6396 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6397 connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6398 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6399
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6400 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6401 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6402 if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6403 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6404 eval "ac_cv_func_connect=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6405 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6406 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6407 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6408 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6409 eval "ac_cv_func_connect=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6410 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6411 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6412
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6413 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6414 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6415 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6416 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6417 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6418 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6419
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6420 if test $ac_cv_func_connect = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6421
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6422 xe_msg_checking="for connect in -lsocket"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6423 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6424 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6425 echo "configure:6426: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6426 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6427
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6428 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6429 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6430 #line 6431 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6431 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6432 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6433 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6434 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6435 char connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6436
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6437 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6438 connect()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6439 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6440 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6441 if { (eval echo configure:6442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6442 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6443 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6444 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6445 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6446 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6447 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6448 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6449 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6450 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6451 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6452
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6454 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6455 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6456 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6457 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6458 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6459
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6460
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6461 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6462
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6463 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6464 echo $ac_n "checking for remove""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6465 echo "configure:6466: checking for remove" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6466
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6467 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6468 #line 6469 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6469 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6470 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6471 which can conflict with char remove(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6472 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6473 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6474 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6475 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6476 char remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6477
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6478 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6479
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6480 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6481 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6482 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6483 #if defined (__stub_remove) || defined (__stub___remove)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6484 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6485 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6486 remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6487 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6488
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6489 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6490 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6491 if { (eval echo configure:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6492 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6493 eval "ac_cv_func_remove=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6494 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6495 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6496 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6497 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6498 eval "ac_cv_func_remove=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6499 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6500 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6501
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6502 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6503 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6504 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6505 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6506 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6507 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6508
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6509 if test $ac_cv_func_remove = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6510
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6511 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6512 echo "configure:6513: checking for remove in -lposix" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6513 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6514
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6515 xe_check_libs=" -lposix "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6516 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6517 #line 6518 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6518 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6519 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6520 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6521 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6522 char remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6523
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6524 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6525 remove()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6526 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6527 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6528 if { (eval echo configure:6529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6529 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6530 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6531 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6532 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6533 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6534 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6535 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6536 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6537 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6538 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6539
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6541 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6543 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6544 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6545 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6546
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6547
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6548 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6549
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6550 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6551 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6552 echo "configure:6553: checking for shmat" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6553
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6554 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6555 #line 6556 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6556 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6557 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6558 which can conflict with char shmat(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6559 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6560 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6561 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6562 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6563 char shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6564
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6565 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6566
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6567 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6568 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6569 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6570 #if defined (__stub_shmat) || defined (__stub___shmat)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6571 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6572 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6573 shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6574 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6575
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6576 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6577 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6579 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6580 eval "ac_cv_func_shmat=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6581 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6582 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6583 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6584 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6585 eval "ac_cv_func_shmat=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6586 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6587 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6588
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6589 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6590 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6591 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6592 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6593 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6594 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6595
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6596 if test $ac_cv_func_shmat = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6597
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6598 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6599 echo "configure:6600: checking for shmat in -lipc" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6600 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6601
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6602 xe_check_libs=" -lipc "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6603 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6604 #line 6605 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6605 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6606 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6607 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6608 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6609 char shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6610
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6611 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6612 shmat()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6613 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6614 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6616 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6617 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6618 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6619 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6620 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6621 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6622 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6623 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6624 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6625 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6626
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6628 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6629 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6630 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6631 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6632 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6633
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6634
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6635 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6636 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6637
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6638 # Check for libraries that X11R6 Xt/Xaw programs need.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6639 ac_save_LDFLAGS="$LDFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6640 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6641 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6642 # check for ICE first), but we must link in the order -lSM -lICE or
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6643 # we get undefined symbols. So assume we have SM if we have ICE.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6644 # These have to be linked with before -lX11, unlike the other
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6645 # libraries we check for below, so use a different variable.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6646 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6647
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6648 xe_msg_checking="for IceConnectionNumber in -lICE"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6649 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6650 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6651 echo "configure:6652: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6652 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6653
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6654 xe_check_libs=" -lICE $X_EXTRA_LIBS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6655 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6656 #line 6657 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6657 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6658 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6659 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6660 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6661 char IceConnectionNumber();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6662
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6663 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6664 IceConnectionNumber()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6665 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6666 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6668 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6669 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6670 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6671 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6672 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6673 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6674 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6675 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6676 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6677 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6678
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6680 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6681 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6682 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6683 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6684 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6685
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6686
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6687 LDFLAGS="$ac_save_LDFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6688
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6689 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6690 # Autoconf claims to find X library and include dirs for us.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6691 if test "$no_x" = "yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6692 then with_x11=no window_system=none HAVE_X_WINDOWS=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6693 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6694 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6695 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6696
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6697
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6698 if test "$with_x11" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6699 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6700 Defining HAVE_X_WINDOWS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6701 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6702 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6703 #define HAVE_X_WINDOWS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6704 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6705 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6706
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6707 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
6708 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6709
1454
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6710
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6711 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6712 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6713 echo "configure:6714: checking for Xm/Xm.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6714
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6715 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6716 #line 6717 "configure"
1454
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6717 #include "confdefs.h"
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6718 #include <Xm/Xm.h>
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6719 EOF
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6721 { (eval echo configure:6722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1454
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6723 if test -z "$ac_err"; then
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6724 rm -rf conftest*
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6725 eval "ac_cv_header_$ac_safe=yes"
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6726 else
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6727 echo "$ac_err" >&5
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6728 echo "configure: failed program was:" >&5
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6729 cat conftest.$ac_ext >&5
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6730 rm -rf conftest*
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6731 eval "ac_cv_header_$ac_safe=no"
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6732 fi
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6733 rm -f conftest*
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6735 echo "$ac_t""yes" 1>&6
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6736
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6737 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6738 echo "configure:6739: checking for XmStringFree in -lXm" >&5
1454
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6739 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6740
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6741 xe_check_libs=" -lXm "
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6742 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6743 #line 6744 "configure"
1454
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6744 #include "confdefs.h"
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6745 /* Override any gcc2 internal prototype to avoid an error. */
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6746 /* We use char because int might match the return type of a gcc2
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6747 builtin and then its argument prototype would still apply. */
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6748 char XmStringFree();
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6749
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6750 int main() {
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6751 XmStringFree()
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6752 ; return 0; }
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6753 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6754 if { (eval echo configure:6755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1454
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6755 rm -rf conftest*
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6756 eval "ac_cv_lib_$ac_lib_var=yes"
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6757 else
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6758 echo "configure: failed program was:" >&5
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6759 cat conftest.$ac_ext >&5
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6760 rm -rf conftest*
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6761 eval "ac_cv_lib_$ac_lib_var=no"
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6762 fi
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6763 rm -f conftest*
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6764 xe_check_libs=""
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6765
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6767 echo "$ac_t""yes" 1>&6
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6768 got_motif=yes
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6769 else
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6770 echo "$ac_t""no" 1>&6
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6771 fi
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6772
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6773
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6774 else
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6775 echo "$ac_t""no" 1>&6
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6776 fi
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6777
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6778
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6779 if test "$got_motif" != "yes"; then
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6780 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6781 "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6782 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6783 if test -d "$lib_dir" -a -d "$inc_dir"; then
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6784 case "$x_libraries" in *"$lib_dir"* ) ;; *)
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6785 x_libraries="$lib_dir $x_libraries"
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6786 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6787 esac
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6788 case "$x_includes" in "$inc_dir"* ) ;; *)
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6789 x_includes="$inc_dir $x_includes"
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6790 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6791 esac
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6792 break; fi
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6793 done
38d0f093d818 [xemacs-hg @ 2003-05-04 01:04:36 by youngs]
youngs
parents: 1452
diff changeset
6794 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6795
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6796 for rel in "X11R6" "X11R5" "X11R4"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6797 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6798 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6799 case "$x_libraries" in *"$lib_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6800 x_libraries="$x_libraries $lib_dir"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6801 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6802 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6803 case "$x_includes" in "$inc_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6804 x_includes="$x_includes $inc_dir"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6805 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6806 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6807 break; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6808 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6809
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6810 case "$opsys" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6811 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6812 esac
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
6813
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6814 ld_switch_x_site="$X_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6815
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6816
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6817 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
6818 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
6819 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6820
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6821 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6822 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6823 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6824 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6825 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6826 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6827 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6828 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6829 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6830 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6831 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6832 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6833 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6834 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
6835 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6836 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6837 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6838 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6839 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6840 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6841 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6842 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6843 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6844 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6845 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6846 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6847 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6848 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
6849 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6850 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6851 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6852 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6853 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6854 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6855 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6856 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6857 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6858 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6859 ld_switch_run="${dash_r}${runpath}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6860
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6861 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6862 set x $ld_switch_run; shift; ld_switch_run=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6863 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6864 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
6865 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
6866 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6867 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6868 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6869 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6870 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6871 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6872 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6873 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6874 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6875 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6876
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6877
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6878 if test "$extra_verbose" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6879 echo; echo "X11 compilation variables:"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6880 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6881 echo
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6882 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6883
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6884 bitmapdirs=
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6885 if test "$x_includes" != NONE; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6886 for i in $x_includes; do
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6887 if test -d "$i/bitmaps"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6888 bitmapdirs="$i/bitmaps:$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6889 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6890 if test -d "$i/X11/bitmaps"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6891 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6892 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6893 done
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6894 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6895 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6896 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6897 Defining BITMAPDIR = "$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6898 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6899 cat >> confdefs.h <<EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6900 #define BITMAPDIR "$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6901 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6902 }
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6903
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6904
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6905 echo "checking for X defines extracted by xmkmf" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6906 echo "configure:6907: checking for X defines extracted by xmkmf" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6907 rm -fr conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6908 if mkdir conftestdir; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6909 cd conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6910 cat > Imakefile <<'EOF'
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6911 xetest:
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6912 @echo ${PROTO_DEFINES} ${STD_DEFINES}
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6913 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6914 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6916 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6917 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6918 cd ..
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6919 rm -fr conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6920 for word in $xmkmf_defines; do
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
6921 case "$word" in
473
77c75d85635e [xemacs-hg @ 2001-04-18 09:07:27 by martinb]
martinb
parents: 464
diff changeset
6922 -D__STDC__*) ;;
77c75d85635e [xemacs-hg @ 2001-04-18 09:07:27 by martinb]
martinb
parents: 464
diff changeset
6923 -D* )
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6924 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6925 case "$word" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6926 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6927 * ) val=1 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6928 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6929 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6930 if test "$val" = "1"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6931 then { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6932 Defining $sym
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6933 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6934 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6935 #define $sym 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6936 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6937 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6938
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6939 else { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6940 Defining $sym = $val
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6941 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6942 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6943 #define $sym $val
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6944 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6945 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6946
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6947 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6948 fi ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6949 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6950 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6951 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6952
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6953 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6954 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6955 echo "configure:6956: checking for X11/Intrinsic.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6956
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6957 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6958 #line 6959 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6959 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6960 #include <X11/Intrinsic.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6961 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6963 { (eval echo configure:6964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6965 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6966 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6967 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6968 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6969 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6970 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6971 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6972 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6973 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6974 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6975 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6977 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6978 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6979 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6980 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
6981 { echo "configure: error: Unable to find X11 header files." 1>&2; exit 1; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6982 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6983
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6984
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6985
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6986 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6987 echo "configure:6988: checking for XOpenDisplay in -lX11" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6988 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6989
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6990 xe_check_libs=" -lX11 "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6991 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
6992 #line 6993 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6993 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6994 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6995 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6996 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6997 char XOpenDisplay();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6998
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6999 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7000 XOpenDisplay()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7001 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7002 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7003 if { (eval echo configure:7004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7004 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7005 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7006 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7007 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7008 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7009 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7010 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7011 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7012 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7013 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7014
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7016 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7017 have_lib_x11=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7018 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7019 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7020 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7021
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7022
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7023 if test "$have_lib_x11" != "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7024
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7025 xe_msg_checking="for XGetFontProperty in -lX11"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7026 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7027 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7028 echo "configure:7029: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7029 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7030
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7031 xe_check_libs=" -lX11 -b i486-linuxaout"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7032 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7033 #line 7034 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7034 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7035 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7036 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7037 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7038 char XGetFontProperty();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7039
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7040 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7041 XGetFontProperty()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7042 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7043 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7044 if { (eval echo configure:7045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7045 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7046 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7047 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7048 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7049 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7050 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7051 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7052 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7053 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7054 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7055
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7057 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7058 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7059 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7060 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
7061 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7062 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7063
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7064
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7065 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7066 libs_x="-lX11"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7067 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7068
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7069
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7070 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7071 echo "configure:7072: checking for XShapeSelectInput in -lXext" >&5
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7072 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7073
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7074 xe_check_libs=" -lXext "
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7075 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7076 #line 7077 "configure"
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7077 #include "confdefs.h"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7078 /* Override any gcc2 internal prototype to avoid an error. */
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7079 /* We use char because int might match the return type of a gcc2
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7080 builtin and then its argument prototype would still apply. */
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7081 char XShapeSelectInput();
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7082
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7083 int main() {
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7084 XShapeSelectInput()
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7085 ; return 0; }
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7086 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7087 if { (eval echo configure:7088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7088 rm -rf conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7089 eval "ac_cv_lib_$ac_lib_var=yes"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7090 else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7091 echo "configure: failed program was:" >&5
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7092 cat conftest.$ac_ext >&5
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7093 rm -rf conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7094 eval "ac_cv_lib_$ac_lib_var=no"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7095 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7096 rm -f conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7097 xe_check_libs=""
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7098
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7100 echo "$ac_t""yes" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7101 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7102 else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7103 echo "$ac_t""no" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7104 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7105
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7106
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
7107
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7108
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7109 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7110 echo "configure:7111: checking for XtOpenDisplay in -lXt" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7111 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7112
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7113 xe_check_libs=" -lXt "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7114 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7115 #line 7116 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7116 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7117 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7118 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7119 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7120 char XtOpenDisplay();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7121
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7122 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7123 XtOpenDisplay()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7124 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7125 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7126 if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7127 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7128 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7129 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7130 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7131 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7132 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7133 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7134 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7135 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7136 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7137
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7139 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7140 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7141 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7142 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
7143 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7144 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7145
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7146
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7147
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7148 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7149 echo "configure:7150: checking the version of X11 being used" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7150 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7151 #line 7152 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7152 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7153 #include <X11/Intrinsic.h>
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7154 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7155 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7157 then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7158 ./conftest foobar; x11_release=$?
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7159 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7160 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7161 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7162 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7163 rm -fr conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7164 x11_release=4
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7165 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7166 rm -fr conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7167 echo "$ac_t""R${x11_release}" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7168 { test "$extra_verbose" = "yes" && cat << EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7169 Defining THIS_IS_X11R${x11_release}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7170 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7171 cat >> confdefs.h <<EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7172 #define THIS_IS_X11R${x11_release} 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7173 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7174 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7175
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7176
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7177 if test "${x11_release}" = "4"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7178 case "$with_widgets" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7179 "" | "no") with_widgets=no ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7180 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7181 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7182 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7183
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7184 for ac_func in XConvertCase
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7185 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7187 echo "configure:7188: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7188
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7189 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7190 #line 7191 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7191 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7192 /* System header to define __stub macros and hopefully few prototypes,
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7193 which can conflict with char $ac_func(); below. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7194 #include <assert.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7195 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7196 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7197 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7198 char $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7199
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7200 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7201
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7202 /* The GNU C library defines this for functions which it implements
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7203 to always fail with ENOSYS. Some functions are actually named
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7204 something starting with __ and the normal name is an alias. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7206 choke me
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7207 #else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7208 $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7209 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7210
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7211 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7212 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7213 if { (eval echo configure:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7214 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7215 eval "ac_cv_func_$ac_func=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7216 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7217 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7218 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7219 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7220 eval "ac_cv_func_$ac_func=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7221 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7222 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7223
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7225 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7227 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7228 Defining $ac_tr_func
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7229 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7230 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7231 #define $ac_tr_func 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7232 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7233 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7234
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7235 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7236 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7237 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7238 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7239
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7240
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7241 for ac_hdr in X11/Xlocale.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7242 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7245 echo "configure:7246: checking for $ac_hdr" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7246
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7247 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7248 #line 7249 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7249 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7250 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7251 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7253 { (eval echo configure:7254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
7254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7255 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7256 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7257 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7258 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7259 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7260 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7261 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7262 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7263 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7264 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7265 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7267 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7269 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7270 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7271 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7272 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7273 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7274 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7275 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7276
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7277 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7278 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7279 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7280 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7281
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7282
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7283 for ac_func in XRegisterIMInstantiateCallback
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7284 do
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7286 echo "configure:7287: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7287
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7288 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7289 #line 7290 "configure"
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7290 #include "confdefs.h"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7291 /* System header to define __stub macros and hopefully few prototypes,
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7292 which can conflict with char $ac_func(); below. */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7293 #include <assert.h>
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7294 /* Override any gcc2 internal prototype to avoid an error. */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7295 /* We use char because int might match the return type of a gcc2
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7296 builtin and then its argument prototype would still apply. */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7297 char $ac_func();
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7298
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7299 int main() {
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7300
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7301 /* The GNU C library defines this for functions which it implements
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7302 to always fail with ENOSYS. Some functions are actually named
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7303 something starting with __ and the normal name is an alias. */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7305 choke me
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7306 #else
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7307 $ac_func();
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7308 #endif
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7309
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7310 ; return 0; }
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7311 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7312 if { (eval echo configure:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7313 rm -rf conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7314 eval "ac_cv_func_$ac_func=yes"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7315 else
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7316 echo "configure: failed program was:" >&5
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7317 cat conftest.$ac_ext >&5
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7318 rm -rf conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7319 eval "ac_cv_func_$ac_func=no"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7320 fi
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7321 rm -f conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7322
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7324 echo "$ac_t""yes" 1>&6
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7326 { test "$extra_verbose" = "yes" && cat << EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7327 Defining $ac_tr_func
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7328 EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7329 cat >> confdefs.h <<EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7330 #define $ac_tr_func 1
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7331 EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7332 }
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7333
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7334 else
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7335 echo "$ac_t""no" 1>&6
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7336 fi
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7337 done
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7338
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7339 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7340 echo "configure:7341: checking for standard XRegisterIMInstantiateCallback prototype" >&5
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7341 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7342 #line 7343 "configure"
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7343 #include "confdefs.h"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7344
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7345 #define NeedFunctionPrototypes 1
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7346 #include <X11/Xlib.h>
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7347 extern Bool XRegisterIMInstantiateCallback(
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7348 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7349
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7350 int main() {
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7351
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7352 ; return 0; }
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7353 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7354 if { (eval echo configure:7355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7355 rm -rf conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7356 echo "$ac_t""yes" 1>&6
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7357 else
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7358 echo "configure: failed program was:" >&5
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7359 cat conftest.$ac_ext >&5
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7360 rm -rf conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7361 echo "$ac_t""no" 1>&6
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7362 { test "$extra_verbose" = "yes" && cat << \EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7363 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7364 EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7365 cat >> confdefs.h <<\EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7366 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7367 EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7368 }
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7369
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7370 fi
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
7371 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7372
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7373 test -z "$with_xmu" && {
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7374 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7375 echo "configure:7376: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7376 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7377
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7378 xe_check_libs=" -lXmu "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7379 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7380 #line 7381 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7381 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7382 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7383 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7384 builtin and then its argument prototype would still apply. */
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7385 char XmuReadBitmapDataFromFile();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7386
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7387 int main() {
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7388 XmuReadBitmapDataFromFile()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7389 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7390 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7391 if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7392 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7393 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7394 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7395 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7396 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7397 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7398 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7399 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7400 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7401 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7402
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7404 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7405 with_xmu=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7406 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7407 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7408 with_xmu=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7409 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7410
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7411 }
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7412 if test "$with_xmu" = "no"; then
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7413 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7414 echo " xemacs will be linked with \"xmu.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7415 fi
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
7416 else
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7417 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7418 { test "$extra_verbose" = "yes" && cat << \EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7419 Defining HAVE_XMU
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7420 EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7421 cat >> confdefs.h <<\EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7422 #define HAVE_XMU 1
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7423 EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7424 }
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
7425
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
7426 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7427
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7428
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7429 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7430 echo "configure:7431: checking for main in -lXbsd" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7431 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7432
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7433 xe_check_libs=" -lXbsd "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7434 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7435 #line 7436 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7436 #include "confdefs.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7437
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7438 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7439 main()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7440 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7441 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7442 if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7443 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7444 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7445 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7446 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7447 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7448 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7449 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7450 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7451 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7452 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7453
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7455 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7456 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7457 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7458 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7459 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7460
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7461
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7462
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7463 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7464 if test "$GCC" = "yes"; then
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7465 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7466 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7467 else
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7468 case "$CC" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7469 "xlc" ) CC="xlc_r" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7470 "xlC" ) CC="xlC_r" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7471 "cc" ) CC="cc_r" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7472 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7473 fi
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7474 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7475
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7476 fi
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7477 if test "$with_msw" != "no"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7478 echo "checking for MS-Windows" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7479 echo "configure:7480: checking for MS-Windows" >&5
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7480
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7481 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7482 echo "configure:7483: checking for main in -lgdi32" >&5
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7483 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7484
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7485 xe_check_libs=" -lgdi32 "
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7486 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7487 #line 7488 "configure"
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7488 #include "confdefs.h"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7489
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7490 int main() {
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7491 main()
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7492 ; return 0; }
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7493 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7494 if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7495 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7496 eval "ac_cv_lib_$ac_lib_var=yes"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7497 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7498 echo "configure: failed program was:" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7499 cat conftest.$ac_ext >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7500 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7501 eval "ac_cv_lib_$ac_lib_var=no"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7502 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7503 rm -f conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7504 xe_check_libs=""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7505
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7507 echo "$ac_t""yes" 1>&6
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7508 with_msw=yes
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7509 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7510 echo "$ac_t""no" 1>&6
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7511 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7512
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7513
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7514 if test "$with_msw" = "yes"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7515 { test "$extra_verbose" = "yes" && cat << \EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7516 Defining HAVE_MS_WINDOWS
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7517 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7518 cat >> confdefs.h <<\EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7519 #define HAVE_MS_WINDOWS 1
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7520 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7521 }
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7522
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
7523
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7524 if test "$with_netinstall" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7525 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7526 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7527 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7528 fi
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
7529
1740
cf42e3b47b41 [xemacs-hg @ 2003-10-12 02:29:25 by james]
james
parents: 1707
diff changeset
7530 install_pp="$srcdir/lib-src/installexe.sh"
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7531 libs_system="$libs_system -limm32 -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lole32 -luuid -lwinspool -lmpr" && if test "$extra_verbose" = "yes"; then echo " Appending \"-limm32 -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lole32 -luuid -lwinspool -lmpr\" to \$libs_system"; fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7532 if test "$with_dragndrop" != no; then
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7533 dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7534 with_dragndrop=yes
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7535 fi
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7536 if test "$window_system" != x11; then
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7537 window_system=msw
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7538 test "$with_scrollbars" != "no" && with_scrollbars=msw
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7539 test "$with_menubars" != "no" && with_menubars=msw
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7540 test "$with_toolbars" != "no" && with_toolbars=msw
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7541 test "$with_dialogs" != "no" && with_dialogs=msw
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7542 test "$with_widgets" != "no" && with_widgets=msw
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7543 fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7544 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7545 #line 7546 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7546 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7547 #include <fcntl.h>
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7548 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7549 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7550 if { (eval echo configure:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7551 then
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7552 { test "$extra_verbose" = "yes" && cat << \EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7553 Defining HAVE_MSG_SELECT
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7554 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7555 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7556 #define HAVE_MSG_SELECT 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7557 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7558 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7559
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7560 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7561 conftest_rc="$?"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7562 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7563 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7564 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7565 rm -fr conftest*
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7566 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7567 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7568
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7569
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7570
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7571 test -z "$with_dragndrop" && with_dragndrop="$with_dragndrop_default"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7572 test -z "$window_system" && window_system="none"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7573
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7574 if test "$window_system" = "none"; then
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7575 for feature in menubars scrollbars toolbars dialogs dragndrop xface
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7576 do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7577 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7578 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7579 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7580 eval "with_${feature}=no"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7581 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7582 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7583 test -z "$with_toolbars" && with_toolbars=yes
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7584 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7585
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7586 if test "$with_msw" != "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7587 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7588 do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7589 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7590 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7591 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7592 eval "with_${feature}=no"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7593 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7594 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7595 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7596 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7597
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7598 if test "$with_x11" != "yes"; then
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
7599 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7600 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7601 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7602 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7603 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7604 eval "with_${feature}=no"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7605 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7606 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7607
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7608 if test "$with_x11" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7609 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7610 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7611 echo "configure:7612: checking for X11/extensions/shape.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7612
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7613 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7614 #line 7615 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7615 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7616 #include <X11/extensions/shape.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7617 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7619 { (eval echo configure:7620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7621 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7622 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7623 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7624 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7625 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7626 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7627 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7628 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7629 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7630 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7631 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7633 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7634
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7635 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7636 Defining HAVE_BALLOON_HELP
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7637 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7638 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7639 #define HAVE_BALLOON_HELP 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7640 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7641 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7642
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
7643
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7644 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7645 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7646 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7647
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7648 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7649
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7650 bitmapdir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7651
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7652 case "$window_system" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7653 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7654 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7655 gtk )
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7656 HAVE_X_WINDOWS=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7657 test "$with_gnome" = "yes" && echo " Using GNOME."
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7658 test "$with_gnome" = "no" && echo " Using GTK."
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7659 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7660 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7661 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7662
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7663 case "$x_libraries" in *X11R4* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7664 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7665 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7666 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7667
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7668 echo "checking for WM_COMMAND option" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7669 echo "configure:7670: checking for WM_COMMAND option" >&5;
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7670 if test "$with_wmcommand" != "no"; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7671 { test "$extra_verbose" = "yes" && cat << \EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7672 Defining HAVE_WMCOMMAND
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7673 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7674 cat >> confdefs.h <<\EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7675 #define HAVE_WMCOMMAND 1
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7676 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7677 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7678
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7679 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7680
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7681 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7682 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7683 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7684 echo "configure:7685: checking for X11/Xauth.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7685
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7686 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7687 #line 7688 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7688 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7689 #include <X11/Xauth.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7690 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7692 { (eval echo configure:7693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
7693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7694 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7695 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7696 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7697 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7698 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7699 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7700 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7701 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7702 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7703 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7704 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7706 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7707 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7708 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7709 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7710 with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7711 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7712 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7713 test -z "$with_xauth" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7714 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7715 echo "configure:7716: checking for XauGetAuthByAddr in -lXau" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7716 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7717
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7718 xe_check_libs=" -lXau "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7719 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7720 #line 7721 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7721 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7722 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7723 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7724 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7725 char XauGetAuthByAddr();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7726
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7727 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7728 XauGetAuthByAddr()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7729 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7730 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7731 if { (eval echo configure:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7732 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7733 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7734 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7735 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7736 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7737 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7738 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7739 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7740 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7741 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7742
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7744 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7745 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7746 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7747 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7748 with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7749 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7750
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7751 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7752 test -z "$with_xauth" && with_xauth=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7753 if test "$with_xauth" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7754 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7755 Defining HAVE_XAUTH
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7756 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7757 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7758 #define HAVE_XAUTH 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7759 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7760 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7761
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7762
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7763 T=""
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7764 for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7765 libs_xauth="$T"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7766
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7767 fi
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7768
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7769
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7770
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7771
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
7772
1651
d3af5b868526 [xemacs-hg @ 2003-08-28 15:45:20 by james]
james
parents: 1633
diff changeset
7773 if test "$xemacs_compiler" = "g++"; then
d3af5b868526 [xemacs-hg @ 2003-08-28 15:45:20 by james]
james
parents: 1633
diff changeset
7774 LIBSTDCPP=-lstdc++
d3af5b868526 [xemacs-hg @ 2003-08-28 15:45:20 by james]
james
parents: 1633
diff changeset
7775 else
d3af5b868526 [xemacs-hg @ 2003-08-28 15:45:20 by james]
james
parents: 1633
diff changeset
7776 LIBSTDCPP=
d3af5b868526 [xemacs-hg @ 2003-08-28 15:45:20 by james]
james
parents: 1633
diff changeset
7777 fi
d3af5b868526 [xemacs-hg @ 2003-08-28 15:45:20 by james]
james
parents: 1633
diff changeset
7778
d3af5b868526 [xemacs-hg @ 2003-08-28 15:45:20 by james]
james
parents: 1633
diff changeset
7779
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7780 if test "$with_modules" != "no"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7781 echo "checking for module support" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7782 echo "configure:7783: checking for module support" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7783
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7784 case "$opsys" in
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7785 mingw* | cygwin* ) have_dl=yes ;;
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7786 darwin ) have_dl=yes
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7787 { test "$extra_verbose" = "yes" && cat << \EOF
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7788 Defining HAVE_DYLD
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7789 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7790 cat >> confdefs.h <<\EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7791 #define HAVE_DYLD 1
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7792 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7793 }
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7794
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7795 ;;
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7796 * )
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7797 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7798 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7799 echo "configure:7800: checking for dlfcn.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7800
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7801 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7802 #line 7803 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7803 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7804 #include <dlfcn.h>
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7805 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7807 { (eval echo configure:7808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7809 if test -z "$ac_err"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7810 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7811 eval "ac_cv_header_$ac_safe=yes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7812 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7813 echo "$ac_err" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7814 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7815 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7816 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7817 eval "ac_cv_header_$ac_safe=no"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7818 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7819 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7821 echo "$ac_t""yes" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7822
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7823 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7824 echo "configure:7825: checking for dlopen in -lc" >&5
2048
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7825 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7826 #line 7827 "configure"
2048
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7827 #include "confdefs.h"
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7828 #include <dlfcn.h>
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7829 int main() {
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7830 dlopen ("", 0);
2048
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7831 ; return 0; }
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7832 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7833 if { (eval echo configure:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2048
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7834 rm -rf conftest*
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7835 have_dl=yes
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7836 else
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7837 echo "configure: failed program was:" >&5
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7838 cat conftest.$ac_ext >&5
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7839 rm -rf conftest*
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7840
193e76abdf0f [xemacs-hg @ 2004-04-29 03:04:56 by james]
james
parents: 2029
diff changeset
7841 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7842 echo "configure:7843: checking for dlopen in -ldl" >&5
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7843 ac_save_LIBS="$LIBS"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7844 LIBS="$LIBS -ldl"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7845 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7846 #line 7847 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7847 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7848 #include <dlfcn.h>
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7849 int main() {
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7850 dlopen ("", 0);
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7851 ; return 0; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7852 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7853 if { (eval echo configure:7854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7854 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7855 have_dl=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7856 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7857 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7858 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7859 rm -rf conftest*
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7860
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7861 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7862 echo "configure:7863: checking for dlopen in -lsvld" >&5
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7863 LIBS="$ac_save_LIBS -lsvld"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7864 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7865 #line 7866 "configure"
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7866 #include "confdefs.h"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7867 #include <dlfcn.h>
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7868 int main() {
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7869 dlopen ("", 0);
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7870 ; return 0; }
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7871 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7872 if { (eval echo configure:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7873 rm -rf conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7874 have_dl=yes
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7875 else
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7876 echo "configure: failed program was:" >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7877 cat conftest.$ac_ext >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7878 rm -rf conftest*
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7879 LIBS="$ac_save_LIBS"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7880 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7881 rm -f conftest*
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7882 fi
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7883 rm -f conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7884 fi
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7885 rm -f conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7886 else
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7887 echo "$ac_t""no" 1>&6
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7888 fi
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7889
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7890 if test "$have_dl" = "yes"; then
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7891 { test "$extra_verbose" = "yes" && cat << \EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7892 Defining HAVE_DLOPEN
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7893 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7894 cat >> confdefs.h <<\EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7895 #define HAVE_DLOPEN 1
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7896 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7897 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
7898
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7899 else
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7900 ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'`
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7901 echo $ac_n "checking for dl.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7902 echo "configure:7903: checking for dl.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7903
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7904 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7905 #line 7906 "configure"
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7906 #include "confdefs.h"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7907 #include <dl.h>
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7908 EOF
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7910 { (eval echo configure:7911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7912 if test -z "$ac_err"; then
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7913 rm -rf conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7914 eval "ac_cv_header_$ac_safe=yes"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7915 else
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7916 echo "$ac_err" >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7917 echo "configure: failed program was:" >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7918 cat conftest.$ac_ext >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7919 rm -rf conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7920 eval "ac_cv_header_$ac_safe=no"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7921 fi
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7922 rm -f conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7924 echo "$ac_t""yes" 1>&6
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7925
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7926 echo $ac_n "checking for shl_load in -lc""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7927 echo "configure:7928: checking for shl_load in -lc" >&5
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7928 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7929 #line 7930 "configure"
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7930 #include "confdefs.h"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7931 #include <dl.h>
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7932 int main() {
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7933 shl_load ("", 0, 0);
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7934 ; return 0; }
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7935 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7936 if { (eval echo configure:7937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7937 rm -rf conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7938 have_dl=yes
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7939 else
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7940 echo "configure: failed program was:" >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7941 cat conftest.$ac_ext >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7942 rm -rf conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7943
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7944 echo $ac_n "checking for shl_load in -ldl""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7945 echo "configure:7946: checking for shl_load in -ldl" >&5
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7946 ac_save_LIBS="$LIBS"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7947 LIBS="$LIBS -ldld"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7948 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7949 #line 7950 "configure"
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7950 #include "confdefs.h"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7951 #include <dl.h>
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7952 int main() {
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7953 shl_load ("", 0, 0);
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7954 ; return 0; }
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7955 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7956 if { (eval echo configure:7957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7957 rm -rf conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7958 have_dl=yes
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7959 else
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7960 echo "configure: failed program was:" >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7961 cat conftest.$ac_ext >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7962 rm -rf conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7963 LIBS="$ac_save_LIBS"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7964 fi
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7965 rm -f conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7966 fi
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7967 rm -f conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7968 else
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7969 echo "$ac_t""no" 1>&6
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7970 fi
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7971
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7972 if test "$have_dl" = "yes"; then
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7973 { test "$extra_verbose" = "yes" && cat << \EOF
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7974 Defining HAVE_SHL_LOAD
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7975 EOF
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7976 cat >> confdefs.h <<\EOF
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7977 #define HAVE_SHL_LOAD 1
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7978 EOF
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7979 }
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7980
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7981 else
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7982 ac_safe=`echo "ltdl.h" | sed 'y%./+-%__p_%'`
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7983 echo $ac_n "checking for ltdl.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7984 echo "configure:7985: checking for ltdl.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7985
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7986 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7987 #line 7988 "configure"
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7988 #include "confdefs.h"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7989 #include <ltdl.h>
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7990 EOF
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
7992 { (eval echo configure:7993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7994 if test -z "$ac_err"; then
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7995 rm -rf conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7996 eval "ac_cv_header_$ac_safe=yes"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7997 else
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7998 echo "$ac_err" >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
7999 echo "configure: failed program was:" >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8000 cat conftest.$ac_ext >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8001 rm -rf conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8002 eval "ac_cv_header_$ac_safe=no"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8003 fi
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8004 rm -f conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8006 echo "$ac_t""yes" 1>&6
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8007
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8008 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8009 echo "configure:8010: checking for lt_dlinit in -lltdl" >&5
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8010 ac_save_LIBS="$LIBS"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8011 LIBS="$LIBS -lltdl"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8012 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8013 #line 8014 "configure"
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8014 #include "confdefs.h"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8015 #include <ltdl.h>
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8016 int main() {
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8017 lt_dlinit ();
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8018 ; return 0; }
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8019 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2079
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8021 rm -rf conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8022 have_dl=yes
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8023 else
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8024 echo "configure: failed program was:" >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8025 cat conftest.$ac_ext >&5
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8026 rm -rf conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8027 LIBS="$ac_save_LIBS"
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8028 fi
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8029 rm -f conftest*
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8030 else
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8031 echo "$ac_t""no" 1>&6
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8032 fi
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8033
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8034 if test "$have_dl" = "yes"; then
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8035 { test "$extra_verbose" = "yes" && cat << \EOF
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8036 Defining HAVE_LTDL
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8037 EOF
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8038 cat >> confdefs.h <<\EOF
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8039 #define HAVE_LTDL 1
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8040 EOF
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8041 }
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8042
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8043 fi
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8044 fi
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8045 fi
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8046 ac_save_LIBS=
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8047 esac
9402c85dcf6f [xemacs-hg @ 2004-05-14 15:35:28 by james]
james
parents: 2050
diff changeset
8048
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8049 if test -n "$have_dl"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8050
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8051 dll_ld=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8052 dll_ldflags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8053 dll_cflags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8054 dll_post=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8055 dll_ldo="-o"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8056 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8057 xehost=$canonical
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8058 xealias=$internal_configuration
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8059
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8060 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8061 echo "configure:8062: checking how to build dynamic libraries for ${xehost}" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8062 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8063 case "$xehost" in
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8064 *-*-linux-gnu*) ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8065 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8066 esac
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8067
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8068 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8069 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8070 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8071
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8072 case "$xehost_os" in
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8073 aix3*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8074 # AIX sometimes has problems with the GCC collect2 program. For some
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8075 # reason, if we set the COLLECT_NAMES environment variable, the problems
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8076 # vanish in a puff of smoke.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8077 if test "${COLLECT_NAMES+set}" != set; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8078 COLLECT_NAMES=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8079 export COLLECT_NAMES
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8080 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8081 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8082 esac
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8083
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8084 # Now see if the compiler is really GCC.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8085 if test "$GCC" = "yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8086 XEGCC=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8087 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8088 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8089 echo "configure:8090: checking checking whether we are using GNU C" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8090 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8091 #line 8092 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8092 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8093
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8094 #ifdef __GNUC__
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8095 yes;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8096 #endif
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8097
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8098 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8100 egrep "yes" >/dev/null 2>&1; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8101 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8102 XEGCC=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8103 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8104 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8105 XEGCC=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8106 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8107 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8108
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8109 echo "$ac_t""${XEGCC}" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8110 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8111
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8112 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8113 echo "configure:8114: checking how to produce PIC code" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8114 wl=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8115
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8116 can_build_shared=yes
1756
b5db5c9230b1 [xemacs-hg @ 2003-10-16 19:44:34 by james]
james
parents: 1740
diff changeset
8117 if test "$XEGCC" = yes -o "$__ICC" = yes; then
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8118 wl='-Wl,'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8119
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8120 case "$xehost_os" in
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8121 aix[3-9]* | irix[5-9]* | osf[3-9])
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8122 # PIC is the default for these OSes.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8123 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8124
1692
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8125 *darwin*) dll_cflags='-dynamic'
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8126 ;;
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8127
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8128 os2*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8129 # We can build DLLs from non-PIC.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8130 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8131 amigaos*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8132 # FIXME: we need at least 68020 code to build shared libraries, but
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8133 # adding the `-m68020' flag to GCC prevents building anything better,
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8134 # like `-m68040'.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8135 dll_cflags='-m68020 -resident32 -malways-restore-a4'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8136 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8137 *cygwin* | *mingw* )
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8138 # PIC is the default
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8139 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8140 *)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8141 dll_cflags='-fPIC'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8142 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8143 esac
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8144 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8145 # PORTME Check for PIC flags for the system compiler.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8146 case "$xehost_os" in
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8147 hpux9* | hpux1[0-9]*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8148 # Is there a better link_static_flag that works with the bundled CC?
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8149 wl='-Wl,'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8150 dll_cflags='+Z'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8151 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8152
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8153 irix[5-9]*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8154 wl='-Wl,'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8155 # PIC (with -KPIC) is the default.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8156 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8157
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8158 os2*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8159 # We can build DLLs from non-PIC.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8160 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8161
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8162 osf[3-9]*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8163 # All OSF/1 code is PIC.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8164 wl='-Wl,'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8165 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8166
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8167 aix[3-9]*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8168 # All AIX code is PIC.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8169 wl='-Wl,'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8170 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8171
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8172 sco3.2v5*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8173 dll_cflags='-belf -Kpic'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8174 wl='-Wl,'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8175 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8176
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8177 unixware*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8178 dll_cflags="-KPIC"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8179 wl="-Wl,"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8180 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8181
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8182 sysv4*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8183 dll_cflags="-KPIC"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8184 wl="-Wl,"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8185 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8186
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8187 sysv5*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8188 dll_cflags="-KPIC"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8189 wl="-Wl,"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8190 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8191
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8192 solaris2*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8193 dll_cflags='-KPIC'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8194 wl='-Wl,'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8195 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8196
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8197 sunos4*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8198 dll_cflags='-PIC'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8199 wl='-Qoption ld '
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8200 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8201
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8202 uts4*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8203 dll_cflags='-pic'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8204 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8205
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8206 *)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8207 can_build_shared=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8208 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8209 esac
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8210 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8211
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8212 if test -n "$dll_cflags"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8213 echo "$ac_t""${dll_cflags}" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8214
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8215 # Check to make sure the dll_cflags actually works.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8216 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8217 echo "configure:8218: checking if PIC flag ${dll_cflags} really works" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8218 save_CFLAGS="$CFLAGS"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8219 CFLAGS="$CFLAGS $dll_cflags -DPIC"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8220 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8221 #line 8222 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8222 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8223
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8224 int main() {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8225 int x=0;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8226 ; return 0; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8227 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8228 if { (eval echo configure:8229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8229 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8230
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8231 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8232 # reports no error. So, we need to grep stderr for (Bundled).
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8233 if grep '(Bundled)' config.log >/dev/null; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8234 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8235 can_build_shared=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8236 dll_cflags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8237 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8238 echo "$ac_t""yes" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8239 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8240 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8241 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8242 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8243 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8244 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8245 can_build_shared=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8246 dll_cflags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8247 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8248 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8249 CFLAGS="$save_CFLAGS"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8250 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8251 echo "$ac_t""none" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8252 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8253
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8254 if test "$can_build_shared" = "yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8255 cc_produces_so=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8256 xldf=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8257 xcldf=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8258 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8259 echo "configure:8260: checking if C compiler can produce shared libraries" >&5
1756
b5db5c9230b1 [xemacs-hg @ 2003-10-16 19:44:34 by james]
james
parents: 1740
diff changeset
8260 if test "$XEGCC" = yes -o "$__ICC" = yes; then
1692
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8261 case "$xehost_os" in
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8262 *darwin*)
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8263 xcldf='-bundle'
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8264 xldf='-bundle -bundle_loader ../../src/xemacs'
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8265 ;;
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8266 *)
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8267 xcldf="-shared"
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8268 xldf="-shared"
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8269 ;;
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8270 esac
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8271 else # Not using GCC
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8272 case "$xehost_os" in
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8273 aix[3-9]*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8274 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8275 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8276 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8277
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8278 freebsd2* | netbsd* | openbsd*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8279 xldf="-Bshareable"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8280 xcldf="${wl}-Bshareable"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8281 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8282
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8283 freebsd3*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8284 xcldf="-shared"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8285 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8286
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8287 hpux*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8288 xldf="-b +s"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8289 xcldf="${wl}-b ${wl}+s"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8290 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8291
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8292 irix[5-9]* | osf[3-9]*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8293 xcldf="${wl}-shared"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8294 xldf="-shared"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8295 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8296
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8297 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8298 xcldf="-G"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8299 xldf="-G"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8300 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8301
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8302 sunos4*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8303 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8304 xldf="-assert pure-text -Bstatic"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8305 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8306 esac
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8307 fi # End if if we are using gcc
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8308
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8309 if test -n "$xcldf"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8310 save_LDFLAGS=$LDFLAGS
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8311 save_LIBS=$LIBS
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8312 save_xe_libs=$xe_libs
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8313 LDFLAGS="$xcldf $LDFLAGS"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8314 LIBS=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8315 xe_libs=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8316 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8317 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8318 #line 8319 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8319 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8320
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8321 int main() {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8322 int x=0;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8323 ; return 0; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8324 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8325 if { (eval echo configure:8326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8326 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8327 cc_produces_so=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8328 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8329 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8330 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8331 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8332 cc_produces_so=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8333 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8334 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8335 LDFLAGS=$save_LDFLAGS
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8336 LIBS=$save_LIBS
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8337 xe_libs=$save_xe_libs
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8338 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8339 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8340 cc_produces_so=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8341 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8342 echo "$ac_t""${cc_produces_so}" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8343
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8344 LTLD=$LD
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8345 if test -z "$LTLD"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8346 ac_prog=ld
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8347 if test "$XEGCC" = yes; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8348 # Check if gcc -print-prog-name=ld gives a path.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8349 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8350 echo "configure:8351: checking for ld used by GCC" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8351 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8352 case "$ac_prog" in
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8353 # Accept absolute paths.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8354 /*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8355 if test -z "$LTLD"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8356 # case "$ac_prog" in
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8357 # *gcc-lib*) LTLD="$CC"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8358 # ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8359 # *)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8360 LTLD="$ac_prog"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8361 # ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8362 # esac
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8363 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8364 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8365 "")
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8366 # If it fails, then pretend we aren't using GCC.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8367 ac_prog=ld
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8368 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8369 *)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8370 # If it is relative, then search for the first ld in PATH.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8371 with_gnu_ld=unknown
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8372 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8373 esac
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8374 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8375 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8376 echo "configure:8377: checking for GNU ld" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8377 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8378
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8379 if test -z "$LTLD"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8381 for ac_dir in $PATH; do
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8382 test -z "$ac_dir" && ac_dir=.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8383 if test -f "$ac_dir/$ac_prog"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8384 LTLD="$ac_dir/$ac_prog"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8385 # Check to see if the program is GNU ld. I'd rather use --version,
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8386 # but apparently some GNU ld's only accept -v.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8387 # Break only if it was the GNU/non-GNU ld that we prefer.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8388 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8389 xe_gnu_ld=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8390 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8391 xe_gnu_ld=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8392 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8393 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8394 done
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8395 IFS="$ac_save_ifs"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8396 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8397
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8398 if test -n "$LTLD"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8399 echo "$ac_t""${LTLD}" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8400 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8401 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8402 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8403
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8404 if test -z "$LTLD" -a "$cc_produces_so" = no; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8405 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8406 exit 1
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8407 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8408 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8409
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8410 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8411
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8412 # Check to see if it really is or isn't GNU ld.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8413 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8414 echo "configure:8415: checking if the linker is GNU ld" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8415 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8416 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8417 xe_gnu_ld=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8418 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8419 xe_gnu_ld=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8420 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8421 echo "$ac_t""${xe_gnu_ld}" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8422
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8423 case "$xehost_os" in
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8424 amigaos* | sunos4*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8425 # On these operating systems, we should treat GNU ld like the system ld.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8426 gnu_ld_acts_native=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8427 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8428 *)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8429 gnu_ld_acts_native=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8430 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8431 esac
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8432
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8433 if test "$cc_produces_so" = "yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8434 dll_ld=$CC
1692
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8435 case "$xehost_os" in
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8436 *darwin*)
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8437 dll_ldflags=$xldf
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8438 ;;
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8439 *)
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8440 dll_ldflags=$xcldf
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8441 ;;
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8442 esac
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8443 can_build_shared=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8444 ld_shlibs=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8445 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8446 # OK - only NOW do we futz about with ld.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8447 # See if the linker supports building shared libraries.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8448 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8449 echo "configure:8450: checking whether the linker supports shared libraries" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8450 dll_ld=$CC
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8451 dll_ldflags=$LDFLAGS
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8452 ld_shlibs=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8453 can_build_shared=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8454 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8455 # See if GNU ld supports shared libraries.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8456 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8457 dll_ld=$CC
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8458 dll_ldflags="-shared"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8459 ld_shlibs=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8460 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8461 ld_shlibs=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8462 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8463 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8464 # PORTME fill in a description of your system's linker (not GNU ld)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8465 case "$xehost_os" in
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8466 aix3*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8467 dll_ld=$LTLD
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8468 dll_ldflags=$xldf
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8469 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8471 aix[4-9]*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8472 dll_ldflags=$xcldf
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8473 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8474
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8475 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8476 # support. Future versions do this automatically, but an explicit c++rt0.o
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8477 # doesn't break anything, and helps significantly (at the cost of a little
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8478 # extra space).
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8479 freebsd2.2*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8480 dll_ld=$LTLD
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8481 dll_ldflags=$xldf
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8482 dll_post="/usr/lib/c++rt0.o"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8483 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8484
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8485 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8486 freebsd2*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8487 dll_ld=$LTLD
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8488 dll_ldflags="-Bshareable"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8489 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8490
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8491 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8492 freebsd3*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8493 dll_ldflags="-shared"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8494 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8495
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8496 hpux*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8497 dll_ld=$LTLD
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8498 dll_ldflags=$xldf
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8499 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8500
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8501 irix[5-9]*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8502 dll_ld=$LTLD
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8503 dll_ldflags=$xldf
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8504 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8505
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8506 netbsd*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8507 # Tested with NetBSD 1.2 ld
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8508 dll_ld=$LTLD
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8509 dll_ldflags=$xldf
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8510 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8511
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8512 openbsd*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8513 dll_ld=$LTLD
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8514 dll_ldflags=$xldf
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8515 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8516
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8517 osf3* | osf4*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8518 dll_ld=$LTLD
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8519 dll_ldflags=$xldf
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8520 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8521
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8522 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8523 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8524 dll_ld=$LTLD
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8525 case "$dll_ld" in
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8526 *gcc*) dll_ldflags="-shared"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8527 dll_ld=$CC
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8528 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8529 *) dll_ldflags="-G"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8530 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8531 esac
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8532 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8533
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8534 sunos4*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8535 if test "$XEGCC" = yes; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8536 dll_ld=$CC
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8537 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8538 dll_ld=$LTLD
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8539 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8540 dll_ldflags=$xldf
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8541 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8542
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8543 uts4*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8544 dll_ld=$LTLD
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8545 dll_ldflags="-G"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8546 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8547
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8548 bsdi*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8549 dll_ldflags="-r"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8550 dll_ld="shlicc2"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8551 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8552
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8553 *)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8554 ld_shlibs=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8555 can_build_shared=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8556 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8557 esac
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8558 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8559 echo "$ac_t""${ld_shlibs}" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8560 if test "$ld_shlibs" = "no"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8561 can_build_shared=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8562 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8563 fi # End of if cc_produces_so = no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8564
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8565
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8566 if test "$xe_gnu_ld" = yes; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8567 if test "$ld_shlibs" = yes; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8568 ld_dynamic_link_flags="${wl}-export-dynamic"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8569 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8570 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8571
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8572 if test -z "$ld_dynamic_link_flags"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8573 case "$xehost_os" in
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8574 aix[3-9]*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8575 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8576 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8577
1692
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8578 *darwin*)
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8579 ld_dynamic_link_flags=
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8580 ;;
6265c9c31f53 [xemacs-hg @ 2003-09-18 05:13:54 by youngs]
youngs
parents: 1651
diff changeset
8581
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8582 freebsd2.2*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8583 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8584 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8585
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8586 freebsd2*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8587 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8588 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8589
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8590 freebsd3*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8591 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8592 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8593
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8594 hpux*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8595 ld_dynamic_link_flags="${wl}-E"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8596 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8597
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8598 irix[5-9]*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8599 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8600 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8601
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8602 netbsd*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8603 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8604 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8605
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8606 openbsd*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8607 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8608 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8609
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8610 osf3* | osf4*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8611 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8612 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8613
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8614 solaris2* | solaris7*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8615 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8616 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8617
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8618 sco3.2v5* | unixware* | sysv5* | sysv4*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8619 ld_dynamic_link_flags="${wl}-Bexport"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8620 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8621
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8622 sunos4*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8623 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8624 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8625
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8626 uts4*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8627 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8628 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8629
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8630 bsdi*)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8631 ld_dynamic_link_flags=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8632 ;;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8633
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8634 esac
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8635 fi # End of if -z ld_dynamic_link_flags
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8636 fi # End of if test "$can_build_shared" = "yes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8637
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8638
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8639
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8640
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8641
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8642
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8643
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8644
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8645 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8646
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8647 if test "$can_build_shared" = "yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8648 { test "$extra_verbose" = "yes" && cat << \EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8649 Defining HAVE_SHLIB
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8650 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8651 cat >> confdefs.h <<\EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8652 #define HAVE_SHLIB 1
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8653 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8654 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8655
1491
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
8656 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8657 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8658 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8659 for ac_func in dlerror _dlerror
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8660 do
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8662 echo "configure:8663: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8663
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8664 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8665 #line 8666 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8666 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8667 /* System header to define __stub macros and hopefully few prototypes,
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8668 which can conflict with char $ac_func(); below. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8669 #include <assert.h>
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8670 /* Override any gcc2 internal prototype to avoid an error. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8671 /* We use char because int might match the return type of a gcc2
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8672 builtin and then its argument prototype would still apply. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8673 char $ac_func();
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8674
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8675 int main() {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8676
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8677 /* The GNU C library defines this for functions which it implements
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8678 to always fail with ENOSYS. Some functions are actually named
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8679 something starting with __ and the normal name is an alias. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8681 choke me
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8682 #else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8683 $ac_func();
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8684 #endif
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8685
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8686 ; return 0; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8687 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8688 if { (eval echo configure:8689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8689 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8690 eval "ac_cv_func_$ac_func=yes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8691 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8692 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8693 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8694 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8695 eval "ac_cv_func_$ac_func=no"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8696 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8697 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8698
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8700 echo "$ac_t""yes" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8702 { test "$extra_verbose" = "yes" && cat << EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8703 Defining $ac_tr_func
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8704 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8705 cat >> confdefs.h <<EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8706 #define $ac_tr_func 1
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8707 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8708 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8709
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8710 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8711 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8712 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8713 done
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8714
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8715 with_modules=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8716 MOD_CC="../../lib-src/ellcc"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8717 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8718 INSTALLPATH="\$(moduledir)"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8719 MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM}
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8720 OBJECT_TO_BUILD="\$(MODNAME).ell"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8721 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8722 if test "$with_modules" = "yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8723 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8724 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8725 echo " No module support."
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8726 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8727 with_modules=no
1491
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
8728 fi
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
8729 fi
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
8730 if test "$with_modules" != "yes"; then
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
8731 MOD_CC="$XEMACS_CC"
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
8732 MODCFLAGS="\$(CFLAGS) -I../../src -I\$(srcdir)/../../src"
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
8733 INSTALLPATH=""
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
8734 MOD_INSTALL_PROGRAM="true"
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
8735 OBJECT_TO_BUILD="\$(MODNAME).o"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8736 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8737 MODARCHDIR=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8738 MAKE_DOCFILE="../../lib-src/make-docfile"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8739
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8740
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8741
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8742
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8743
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8744
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8745
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
8746
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
8747
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8748 if test "$with_tooltalk" != "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8749 for dir in "" "Tt/" "desktop/" ; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8750 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8751 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8752 echo "configure:8753: checking for ${dir}tt_c.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8753
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8754 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8755 #line 8756 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8756 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8757 #include <${dir}tt_c.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8758 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8760 { (eval echo configure:8761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
8761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8762 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8763 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8764 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8765 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8766 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8767 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8768 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8769 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8770 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8771 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8772 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8774 echo "$ac_t""yes" 1>&6
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8775 tt_c_h_file="${dir}tt_c.h"; break
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8776 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8777 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8778 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8779
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8780 done
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8781 if test -z "$tt_c_h_file"; then
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8782 if test "$with_tooltalk" = "yes"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8783 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8784 echo " " "Unable to find required tooltalk header files."
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8785 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8786 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8787 with_tooltalk=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8788 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8789 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8790 if test "$with_tooltalk" != "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8791 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8792
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8793 xe_msg_checking="for tt_message_create in -ltt"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8794 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8795 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8796 echo "configure:8797: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8797 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8798
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8799 xe_check_libs=" -ltt $extra_libs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8800 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8801 #line 8802 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8802 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8803 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8804 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8805 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8806 char tt_message_create();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8807
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8808 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8809 tt_message_create()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8810 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8811 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8812 if { (eval echo configure:8813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8813 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8814 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8815 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8816 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8817 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8818 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8819 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8820 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8821 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8822 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8823
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8825 echo "$ac_t""yes" 1>&6
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8826 tt_libs="-ltt $extra_libs"; break
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8827 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8828 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8829 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8830 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8831
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8832
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8833 done
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8834 if test -z "$tt_libs"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8835 if test "$with_tooltalk" = "yes"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8836 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8837 echo " " "Unable to find required tooltalk libraries."
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8838 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8839 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8840 with_tooltalk=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8841 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8842 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
8843 test -z "$with_tooltalk" && with_tooltalk=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8844 if test "$with_tooltalk" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8845 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8846 Defining TOOLTALK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8847 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8848 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8849 #define TOOLTALK 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8850 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8851 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8852
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8853 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8854 Defining TT_C_H_FILE = "$tt_c_h_file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8855 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8856 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8857 #define TT_C_H_FILE "$tt_c_h_file"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8858 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8859 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8860
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8861 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8862 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8863
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8864 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8865 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8866 echo "configure:8867: checking for Dt/Dt.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8867
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8868 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8869 #line 8870 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8870 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8871 #include <Dt/Dt.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8872 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8874 { (eval echo configure:8875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
8875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8876 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8877 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8878 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8879 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8880 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8881 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8882 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8883 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8884 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8885 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8886 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8888 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8889 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8890 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8891 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8892 with_cde=no
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
8893 fi
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
8894 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8895 test -z "$with_cde" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8896 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8897 echo "configure:8898: checking for DtDndDragStart in -lDtSvc" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8898 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8899
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8900 xe_check_libs=" -lDtSvc "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8901 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8902 #line 8903 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8903 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8904 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8905 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8906 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8907 char DtDndDragStart();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8908
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8909 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8910 DtDndDragStart()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8911 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8912 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8913 if { (eval echo configure:8914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8914 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8915 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8916 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8917 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8918 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8919 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8920 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8921 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8922 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8923 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8924
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8926 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8927 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8928 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8929 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8930 with_cde=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8931 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8932
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8933 }
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8934 if test "$with_dragndrop" = "no" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8935 if test "$with_cde" = "yes" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8936 echo "configure: warning: --with-cde forced to \`no'; no generic Drag'n'Drop support" 1>&2
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8937 fi
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8938 with_cde=no
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8939 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8940 test -z "$with_cde" && with_cde=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8941 if test "$with_cde" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8942 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8943 Defining HAVE_CDE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8944 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8945 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8946 #define HAVE_CDE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8947 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8948 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8949
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8950 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8951 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8952 with_tooltalk=yes # CDE requires Tooltalk
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
8953 need_motif=yes # CDE requires Motif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8954 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8955
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8956 test "$window_system" != "x11" && with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8957 if test "$with_xmu" != yes -a "$with_x11" = yes; then
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8958 if test "$with_offix" = "yes" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8959 echo "configure: warning: --with-offix forced to \`no'; no real Xmu support" 1>&2
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8960 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8961 with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8962 fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8963 if test "$with_dragndrop" = no; then
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8964 if test "$with_offix" = "yes" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8965 echo "configure: warning: --with-offix forced to \`no'; no generic Drag'n'Drop support" 1>&2
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8966 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8967 with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8968 fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8969 if test "$with_cde" = yes; then
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8970 if test "$with_offix" = "yes" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8971 echo "configure: warning: --with-offix forced to \`no'; CDE already found" 1>&2
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8972 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8973 with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8974 fi
300
3cc9f0ebfbd1 Import from CVS: tag r21-0b48
cvs
parents: 298
diff changeset
8975 test -z "$with_offix" && with_offix=no
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8976 if test "$with_offix" = "yes"; then
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8977 { test "$extra_verbose" = "yes" && cat << \EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8978 Defining HAVE_OFFIX_DND
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8979 EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8980 cat >> confdefs.h <<\EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8981 #define HAVE_OFFIX_DND 1
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8982 EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8983 }
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8984
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8985 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8986 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8987 fi
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8988 if test "$with_gtk" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8989 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8990 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
8991
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8992 if test "$with_dragndrop" != "no" ; then
446
1ccc32a20af4 Import from CVS: tag r21-2-38
cvs
parents: 444
diff changeset
8993 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
8994 echo "configure:8995: checking if drag and drop API is needed" >&5
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8995 if test -n "$dragndrop_proto" ; then
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8996 with_dragndrop=yes
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8997 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8998 { test "$extra_verbose" = "yes" && cat << \EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
8999 Defining HAVE_DRAGNDROP
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
9000 EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
9001 cat >> confdefs.h <<\EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
9002 #define HAVE_DRAGNDROP 1
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
9003 EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
9004 }
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
9005
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
9006 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
9007 else
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
9008 with_dragndrop=no
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
9009 echo "$ac_t""no" 1>&6
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
9010 fi
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
9011 fi
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
9012
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9013 echo "checking for LDAP" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9014 echo "configure:9015: checking for LDAP" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9015 ldap_libs=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9016 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9017 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9018 echo "configure:9019: checking for ldap.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9019
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9020 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9021 #line 9022 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9022 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9023 #include <ldap.h>
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9024 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9026 { (eval echo configure:9027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9028 if test -z "$ac_err"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9029 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9030 eval "ac_cv_header_$ac_safe=yes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9031 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9032 echo "$ac_err" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9033 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9034 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9035 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9036 eval "ac_cv_header_$ac_safe=no"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9037 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9038 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9040 echo "$ac_t""yes" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9041 :
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9042 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9043 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9044 with_ldap=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9045 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9046 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9047 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9048 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9049 echo "configure:9050: checking for lber.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9050
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9051 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9052 #line 9053 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9053 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9054 #include <lber.h>
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9055 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9057 { (eval echo configure:9058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9059 if test -z "$ac_err"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9060 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9061 eval "ac_cv_header_$ac_safe=yes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9062 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9063 echo "$ac_err" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9064 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9065 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9066 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9067 eval "ac_cv_header_$ac_safe=no"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9068 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9069 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9071 echo "$ac_t""yes" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9072 :
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9073 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9074 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9075 with_ldap=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9076 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9077 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9078 if test "$with_ldap" != "no"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9079
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9080 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9081 echo "configure:9082: checking for ldap_search in -lldap" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9082 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9083
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9084 xe_check_libs=" -lldap "
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9085 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9086 #line 9087 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9087 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9088 /* Override any gcc2 internal prototype to avoid an error. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9089 /* We use char because int might match the return type of a gcc2
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9090 builtin and then its argument prototype would still apply. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9091 char ldap_search();
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9092
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9093 int main() {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9094 ldap_search()
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9095 ; return 0; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9096 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9097 if { (eval echo configure:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9098 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9099 eval "ac_cv_lib_$ac_lib_var=yes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9100 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9101 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9102 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9103 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9104 eval "ac_cv_lib_$ac_lib_var=no"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9105 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9106 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9107 xe_check_libs=""
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9108
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9110 echo "$ac_t""yes" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9111 with_ldap_nolber=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9112 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9113 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9114 with_ldap_nolber=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9115 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9116
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9117
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9118 test "$with_ldap_nolber" = "no" && {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9119 xe_msg_checking="for ldap_open in -lldap"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9120 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9121 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9122 echo "configure:9123: checking "$xe_msg_checking"" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9123 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9124
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9125 xe_check_libs=" -lldap -llber"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9126 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9127 #line 9128 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9128 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9129 /* Override any gcc2 internal prototype to avoid an error. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9130 /* We use char because int might match the return type of a gcc2
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9131 builtin and then its argument prototype would still apply. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9132 char ldap_open();
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9133
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9134 int main() {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9135 ldap_open()
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9136 ; return 0; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9137 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9138 if { (eval echo configure:9139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9139 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9140 eval "ac_cv_lib_$ac_lib_var=yes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9141 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9142 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9143 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9144 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9145 eval "ac_cv_lib_$ac_lib_var=no"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9146 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9147 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9148 xe_check_libs=""
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9149
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9151 echo "$ac_t""yes" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9152 with_ldap_lber=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9153 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9154 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9155 with_ldap_lber=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9156 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9157
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9158 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9159 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9160 xe_msg_checking="for ldap_open in -lldap"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9161 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9162 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9163 echo "configure:9164: checking "$xe_msg_checking"" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9164 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9165
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9166 xe_check_libs=" -lldap -llber -lkrb"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9167 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9168 #line 9169 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9169 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9170 /* Override any gcc2 internal prototype to avoid an error. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9171 /* We use char because int might match the return type of a gcc2
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9172 builtin and then its argument prototype would still apply. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9173 char ldap_open();
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9174
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9175 int main() {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9176 ldap_open()
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9177 ; return 0; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9178 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9179 if { (eval echo configure:9180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9180 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9181 eval "ac_cv_lib_$ac_lib_var=yes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9182 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9183 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9184 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9185 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9186 eval "ac_cv_lib_$ac_lib_var=no"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9187 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9188 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9189 xe_check_libs=""
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9190
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9192 echo "$ac_t""yes" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9193 with_ldap_krb=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9194 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9195 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9196 with_ldap_krb=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9197 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9198
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9199 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9200 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9201 xe_msg_checking="for ldap_open in -lldap"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9202 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9203 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9204 echo "configure:9205: checking "$xe_msg_checking"" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9205 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9206
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9207 xe_check_libs=" -lldap -llber -lkrb -ldes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9208 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9209 #line 9210 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9210 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9211 /* Override any gcc2 internal prototype to avoid an error. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9212 /* We use char because int might match the return type of a gcc2
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9213 builtin and then its argument prototype would still apply. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9214 char ldap_open();
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9215
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9216 int main() {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9217 ldap_open()
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9218 ; return 0; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9219 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9220 if { (eval echo configure:9221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9221 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9222 eval "ac_cv_lib_$ac_lib_var=yes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9223 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9224 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9225 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9226 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9227 eval "ac_cv_lib_$ac_lib_var=no"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9228 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9229 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9230 xe_check_libs=""
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9231
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9233 echo "$ac_t""yes" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9234 with_ldap_krbdes=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9235 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9236 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9237 with_ldap_krbdes=no
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9238 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9239
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9240 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9241 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9242 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9243 if test "$with_ldap" = "yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9244 { test "$extra_verbose" = "yes" && cat << \EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9245 Defining HAVE_LDAP
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9246 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9247 cat >> confdefs.h <<\EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9248 #define HAVE_LDAP 1
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9249 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9250 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9251
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9252 if test "$with_ldap_nolber" = "yes" ; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9253 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9254 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9255 if test "$with_ldap_krb" = "yes" ; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9256 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9257 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9258 if test "$with_ldap_krbdes" = "yes" ; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9259 ldap_libs="-ldes $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$ldap_libs"; fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9260 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9261 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9262 ldap_libs="-llber $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$ldap_libs"; fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9263 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9264 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9265 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9266 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9267 do
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9269 echo "configure:9270: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9270
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9271 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9272 #line 9273 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9273 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9274 /* System header to define __stub macros and hopefully few prototypes,
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9275 which can conflict with char $ac_func(); below. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9276 #include <assert.h>
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9277 /* Override any gcc2 internal prototype to avoid an error. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9278 /* We use char because int might match the return type of a gcc2
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9279 builtin and then its argument prototype would still apply. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9280 char $ac_func();
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9281
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9282 int main() {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9283
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9284 /* The GNU C library defines this for functions which it implements
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9285 to always fail with ENOSYS. Some functions are actually named
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9286 something starting with __ and the normal name is an alias. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9288 choke me
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9289 #else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9290 $ac_func();
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9291 #endif
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9292
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9293 ; return 0; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9294 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9295 if { (eval echo configure:9296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9296 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9297 eval "ac_cv_func_$ac_func=yes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9298 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9299 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9300 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9301 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9302 eval "ac_cv_func_$ac_func=no"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9303 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9304 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9305
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9307 echo "$ac_t""yes" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9309 { test "$extra_verbose" = "yes" && cat << EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9310 Defining $ac_tr_func
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9311 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9312 cat >> confdefs.h <<EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9313 #define $ac_tr_func 1
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9314 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9315 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9316
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9317 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9318 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9319 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9320 done
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9321
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9322 LIBS="$save_LIBS"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9323 MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$MAKE_SUBDIR"; fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9324 need_modules_common=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9325 if test "$with_modules" = "yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9326 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9327 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9328 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9329
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9330
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9331 postgresql_libs=
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9332 if test "$with_postgresql" != "no"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9333 echo "checking for PostgreSQL" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9334 echo "configure:9335: checking for PostgreSQL" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9335
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9336 for header_dir in "" "pgsql/" "postgresql/"; do
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9337 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9338 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9339 echo "configure:9340: checking for ${header_dir}libpq-fe.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9340
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9341 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9342 #line 9343 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9343 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9344 #include <${header_dir}libpq-fe.h>
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9345 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9347 { (eval echo configure:9348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9349 if test -z "$ac_err"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9350 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9351 eval "ac_cv_header_$ac_safe=yes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9352 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9353 echo "$ac_err" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9354 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9355 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9356 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9357 eval "ac_cv_header_$ac_safe=no"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9358 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9359 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9361 echo "$ac_t""yes" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9362 libpq_fe_h_file=${header_dir}libpq-fe.h; break
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9363 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9364 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9365 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9366
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9367 done
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9368
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9369 test -n "$libpq_fe_h_file" && {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9370 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9371 echo "configure:9372: checking for PQconnectdb in -lpq" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9372 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9373
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9374 xe_check_libs=" -lpq "
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9375 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9376 #line 9377 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9377 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9378 /* Override any gcc2 internal prototype to avoid an error. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9379 /* We use char because int might match the return type of a gcc2
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9380 builtin and then its argument prototype would still apply. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9381 char PQconnectdb();
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9382
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9383 int main() {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9384 PQconnectdb()
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9385 ; return 0; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9386 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9388 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9389 eval "ac_cv_lib_$ac_lib_var=yes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9390 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9391 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9392 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9393 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9394 eval "ac_cv_lib_$ac_lib_var=no"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9395 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9396 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9397 xe_check_libs=""
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9398
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9400 echo "$ac_t""yes" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9401 have_libpq=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9402 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9403 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9404 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9405
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9406 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9407
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9408 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9409 with_postgresql=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9410 { test "$extra_verbose" = "yes" && cat << \EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9411 Defining HAVE_POSTGRESQL
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9412 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9413 cat >> confdefs.h <<\EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9414 #define HAVE_POSTGRESQL 1
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9415 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9416 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9417
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9418
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9419 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9420 echo "configure:9421: checking for PQconnectStart in -lpq" >&5
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9421 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9422
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9423 xe_check_libs=" -lpq "
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9424 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9425 #line 9426 "configure"
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9426 #include "confdefs.h"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9427 /* Override any gcc2 internal prototype to avoid an error. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9428 /* We use char because int might match the return type of a gcc2
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9429 builtin and then its argument prototype would still apply. */
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9430 char PQconnectStart();
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9431
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9432 int main() {
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9433 PQconnectStart()
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9434 ; return 0; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9435 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9436 if { (eval echo configure:9437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9437 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9438 eval "ac_cv_lib_$ac_lib_var=yes"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9439 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9440 echo "configure: failed program was:" >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9441 cat conftest.$ac_ext >&5
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9442 rm -rf conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9443 eval "ac_cv_lib_$ac_lib_var=no"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9444 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9445 rm -f conftest*
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9446 xe_check_libs=""
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9447
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9449 echo "$ac_t""yes" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9450 with_postgresqlv7=yes;
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9451 { test "$extra_verbose" = "yes" && cat << \EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9452 Defining HAVE_POSTGRESQLV7
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9453 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9454 cat >> confdefs.h <<\EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9455 #define HAVE_POSTGRESQLV7 1
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9456 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9457 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9458
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9459 else
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9460 echo "$ac_t""no" 1>&6
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9461 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9462
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9463
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9464 { test "$extra_verbose" = "yes" && cat << EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9465 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9466 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9467 cat >> confdefs.h <<EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9468 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9469 EOF
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9470 }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9471
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9472 postgresql_libs="-lpq $postgresql_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$postgresql_libs"; fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9473 MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$MAKE_SUBDIR"; fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9474 need_modules_common=yes
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9475 if test "$with_modules" = "yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9476 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9477 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9478 elif test "$with_postgresql" = "yes"; then
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9479 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9480 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9481 fi
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
9482
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9483
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
9484
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9485 if test "$window_system" != "none"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9486 echo "checking for graphics libraries" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9487 echo "configure:9488: checking for graphics libraries" >&5
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9488
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9489 libpath_xpm=
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9490 incpath_xpm=
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9491 case "$opsys" in
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9492 cygwin*)
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9493 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9494 cygwin_top=`eval "dirname ${cygwin_top}"`;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9495 cygwin_top="${cygwin_top}/..";
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9496 case "$window_system" in
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9497 x11) ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9498 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9499 incpath_xpm="-I${cygwin_top}/include/noX"
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9500 ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9501 gtk) ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9502 none) ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9503 *) ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9504 esac
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9505 ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9506 *) ;;
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9507 esac
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9508 xpm_problem=""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9509 if test -z "$with_xpm"; then
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9510 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9511 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9512 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9513 echo "configure:9514: checking for Xpm - no older than 3.4f" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9514 xe_check_libs=-lXpm
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9515 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9516 #line 9517 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9517 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9518 #define XPM_NUMBERS
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9519 #include <X11/xpm.h>
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9520 int main(int c, char **v) {
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9521 return c == 1 ? 0 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9522 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9523 XpmIncludeVersion < 30406 ? 2 : 0 ;}
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9524 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9525 if { (eval echo configure:9526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9526 then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9527 ./conftest dummy_arg; xpm_status=$?;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9528 if test "$xpm_status" = "0"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9529 with_xpm=yes;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9530 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9531 with_xpm=no;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9532 if test "$xpm_status" = "1"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9533 xpm_problem="Xpm library version and header file version don't match!"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9534 elif test "$xpm_status" = "2"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9535 xpm_problem="Xpm library version is too old!"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9536 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9537 xpm_problem="Internal xpm detection logic error!"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9538 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9539 echo "
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9540 *** WARNING *** $xpm_problem
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9541 I'm not touching that with a 10-foot pole!
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9542 If you really want to use the installed version of Xpm, rerun
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9543 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9544 fi
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9545 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9546 conftest_rc="$?"
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9547 echo "configure: failed program was:" >&5
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9548 cat conftest.$ac_ext >&5
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9549 rm -fr conftest*
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9550 with_xpm=no
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9551 fi
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9552 rm -fr conftest*
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9553 xe_check_libs=
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9554 echo "$ac_t""$with_xpm" 1>&6
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9555 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9556 if test "$with_xpm" = "yes"; then
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
9557 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9558 Defining HAVE_XPM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9559 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9560 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9561 #define HAVE_XPM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9562 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9563 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9564
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9565 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9566 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
9567 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9568 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9569 echo "configure:9570: checking for \"FOR_MSW\" xpm" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9570 xe_check_libs=-lXpm
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9571 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9572 #line 9573 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9573 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9574
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9575 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9576 XpmCreatePixmapFromData()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9577 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9578 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9579 if { (eval echo configure:9580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9580 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9581 xpm_for_msw=no
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9582 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9583 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9584 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9585 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9586 xpm_for_msw=yes
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9587 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9588 rm -f conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9589 xe_check_libs=
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9590 echo "$ac_t""$xpm_for_msw" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9591 if test "$xpm_for_msw" = "yes"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9592 { test "$extra_verbose" = "yes" && cat << \EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9593 Defining FOR_MSW
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9594 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9595 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9596 #define FOR_MSW 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9597 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9598 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9599
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9600 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9601 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9602
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9603 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9604 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9605 echo "configure:9606: checking for compface.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9606
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9607 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9608 #line 9609 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9609 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9610 #include <compface.h>
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9611 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9613 { (eval echo configure:9614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9615 if test -z "$ac_err"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9616 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9617 eval "ac_cv_header_$ac_safe=yes"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9618 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9619 echo "$ac_err" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9620 echo "configure: failed program was:" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9621 cat conftest.$ac_ext >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9622 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9623 eval "ac_cv_header_$ac_safe=no"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9624 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9625 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9627 echo "$ac_t""yes" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9628 :
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9629 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9630 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9631 with_xface=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9632 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9633 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9634 test -z "$with_xface" && {
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9635 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9636 echo "configure:9637: checking for UnGenFace in -lcompface" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9637 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9638
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9639 xe_check_libs=" -lcompface "
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9640 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9641 #line 9642 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9642 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9643 /* Override any gcc2 internal prototype to avoid an error. */
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9644 /* We use char because int might match the return type of a gcc2
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9645 builtin and then its argument prototype would still apply. */
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9646 char UnGenFace();
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9647
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9648 int main() {
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9649 UnGenFace()
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9650 ; return 0; }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9651 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9652 if { (eval echo configure:9653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9653 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9654 eval "ac_cv_lib_$ac_lib_var=yes"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9655 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9656 echo "configure: failed program was:" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9657 cat conftest.$ac_ext >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9658 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9659 eval "ac_cv_lib_$ac_lib_var=no"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9660 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9661 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9662 xe_check_libs=""
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9663
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9665 echo "$ac_t""yes" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9666 :
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9667 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9668 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9669 with_xface=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9670 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9671
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9672 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9673 test -z "$with_xface" && with_xface=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9674 if test "$with_xface" = "yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9675 { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9676 Defining HAVE_XFACE
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9677 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9678 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9679 #define HAVE_XFACE 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9680 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9681 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9682
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9683 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9684 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
9685
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9686 if test "$with_gif" != "no"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9687 with_gif="yes"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9688 { test "$extra_verbose" = "yes" && cat << \EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9689 Defining HAVE_GIF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9690 EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9691 cat >> confdefs.h <<\EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9692 #define HAVE_GIF 1
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9693 EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9694 }
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9695
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9696 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9697
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9698 if test "$with_png $with_tiff" != "no no"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9699
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9700 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9701 echo "configure:9702: checking for inflate in -lc" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9702 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9703
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9704 xe_check_libs=" -lc "
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9705 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9706 #line 9707 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9707 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9708 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9709 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9710 builtin and then its argument prototype would still apply. */
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9711 char inflate();
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9712
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9713 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9714 inflate()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9715 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9716 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9717 if { (eval echo configure:9718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9718 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9719 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9720 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9721 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9722 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9723 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9724 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9725 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9726 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9727 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9728
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9730 echo "$ac_t""yes" 1>&6
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9731 :
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9732 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9733 echo "$ac_t""no" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9734
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9735 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9736 echo "configure:9737: checking for inflate in -lz" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9737 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9738
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9739 xe_check_libs=" -lz "
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9740 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9741 #line 9742 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9742 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9743 /* Override any gcc2 internal prototype to avoid an error. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9744 /* We use char because int might match the return type of a gcc2
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9745 builtin and then its argument prototype would still apply. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9746 char inflate();
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9747
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9748 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9749 inflate()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9750 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9751 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9752 if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9753 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9754 eval "ac_cv_lib_$ac_lib_var=yes"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9755 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9756 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9757 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9758 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9759 eval "ac_cv_lib_$ac_lib_var=no"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9760 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9761 rm -f conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9762 xe_check_libs=""
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9763
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9765 echo "$ac_t""yes" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9766 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9767 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9768 echo "$ac_t""no" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9769
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9770 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9771 echo "configure:9772: checking for inflate in -lgz" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9772 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9773
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9774 xe_check_libs=" -lgz "
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9775 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9776 #line 9777 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9777 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9778 /* Override any gcc2 internal prototype to avoid an error. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9779 /* We use char because int might match the return type of a gcc2
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9780 builtin and then its argument prototype would still apply. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9781 char inflate();
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9782
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9783 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9784 inflate()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9785 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9786 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9787 if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9788 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9789 eval "ac_cv_lib_$ac_lib_var=yes"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9790 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9791 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9792 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9793 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9794 eval "ac_cv_lib_$ac_lib_var=no"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9795 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9796 rm -f conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9797 xe_check_libs=""
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9798
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9800 echo "$ac_t""yes" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9801 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9802 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9803 echo "$ac_t""no" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9804 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9805
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9806
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9807 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9808
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9809
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9810 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9811
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9812
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9813 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9814
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9815 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9816 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9817 echo "configure:9818: checking for jpeglib.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9818
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9819 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9820 #line 9821 "configure"
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9821 #include "confdefs.h"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9822 #include <jpeglib.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9823 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9825 { (eval echo configure:9826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9827 if test -z "$ac_err"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9828 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9829 eval "ac_cv_header_$ac_safe=yes"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9830 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9831 echo "$ac_err" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9832 echo "configure: failed program was:" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9833 cat conftest.$ac_ext >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9834 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9835 eval "ac_cv_header_$ac_safe=no"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9836 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9837 rm -f conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9839 echo "$ac_t""yes" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9840 :
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9841 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9842 echo "$ac_t""no" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9843 with_jpeg=no
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9844 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9845 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9846 test -z "$with_jpeg" && {
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9847 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9848 echo "configure:9849: checking for jpeg_destroy_decompress in -ljpeg" >&5
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9849 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9850
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9851 xe_check_libs=" -ljpeg "
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9852 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9853 #line 9854 "configure"
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9854 #include "confdefs.h"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9855 /* Override any gcc2 internal prototype to avoid an error. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9856 /* We use char because int might match the return type of a gcc2
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9857 builtin and then its argument prototype would still apply. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9858 char jpeg_destroy_decompress();
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9859
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9860 int main() {
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9861 jpeg_destroy_decompress()
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9862 ; return 0; }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9863 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9864 if { (eval echo configure:9865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9865 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9866 eval "ac_cv_lib_$ac_lib_var=yes"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9867 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9868 echo "configure: failed program was:" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9869 cat conftest.$ac_ext >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9870 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9871 eval "ac_cv_lib_$ac_lib_var=no"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9872 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9873 rm -f conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9874 xe_check_libs=""
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9875
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9877 echo "$ac_t""yes" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9878 :
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9879 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9880 echo "$ac_t""no" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9881 with_jpeg=no
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9882 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9883
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9884 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9885 test -z "$with_jpeg" && with_jpeg=yes
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9886 if test "$with_jpeg" = "yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9887 { test "$extra_verbose" = "yes" && cat << \EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9888 Defining HAVE_JPEG
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9889 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9890 cat >> confdefs.h <<\EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9891 #define HAVE_JPEG 1
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9892 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9893 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9894
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9895 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9896 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9897
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9898 png_problem=""
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9899 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9900 echo "configure:9901: checking for pow" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9901
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9902 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9903 #line 9904 "configure"
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9904 #include "confdefs.h"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9905 /* System header to define __stub macros and hopefully few prototypes,
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9906 which can conflict with char pow(); below. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9907 #include <assert.h>
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9908 /* Override any gcc2 internal prototype to avoid an error. */
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9909 /* We use char because int might match the return type of a gcc2
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9910 builtin and then its argument prototype would still apply. */
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9911 char pow();
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9912
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9913 int main() {
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9914
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9915 /* The GNU C library defines this for functions which it implements
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9916 to always fail with ENOSYS. Some functions are actually named
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9917 something starting with __ and the normal name is an alias. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9918 #if defined (__stub_pow) || defined (__stub___pow)
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9919 choke me
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9920 #else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9921 pow();
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9922 #endif
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9923
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9924 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9925 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9926 if { (eval echo configure:9927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9927 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9928 eval "ac_cv_func_pow=yes"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9929 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9930 echo "configure: failed program was:" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9931 cat conftest.$ac_ext >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9932 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9933 eval "ac_cv_func_pow=no"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9934 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9935 rm -f conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9936
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9937 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9938 echo "$ac_t""yes" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9939 :
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9940 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9941 echo "$ac_t""no" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9942 with_png=no
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9943 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9944 }
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9945 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9946 echo $ac_n "checking for png.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9947 echo "configure:9948: checking for png.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9948
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9949 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9950 #line 9951 "configure"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9951 #include "confdefs.h"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9952 #include <png.h>
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9953 EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9955 { (eval echo configure:9956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9957 if test -z "$ac_err"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9958 rm -rf conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9959 eval "ac_cv_header_$ac_safe=yes"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9960 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9961 echo "$ac_err" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9962 echo "configure: failed program was:" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9963 cat conftest.$ac_ext >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9964 rm -rf conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9965 eval "ac_cv_header_$ac_safe=no"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9966 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9967 rm -f conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9969 echo "$ac_t""yes" 1>&6
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9970 :
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9971 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9972 echo "$ac_t""no" 1>&6
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9973 with_png=no
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9974 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9975 }
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9976 test -z "$with_png" && {
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9977 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9978 echo "configure:9979: checking for png_read_image in -lpng" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9979 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9980
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9981 xe_check_libs=" -lpng "
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9982 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9983 #line 9984 "configure"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9984 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9985 /* Override any gcc2 internal prototype to avoid an error. */
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9986 /* We use char because int might match the return type of a gcc2
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9987 builtin and then its argument prototype would still apply. */
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9988 char png_read_image();
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9989
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9990 int main() {
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9991 png_read_image()
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9992 ; return 0; }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9993 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
9994 if { (eval echo configure:9995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9995 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9996 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9997 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9998 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
9999 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10000 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10001 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10002 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10003 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10004 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10005
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10007 echo "$ac_t""yes" 1>&6
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10008 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10009 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10010 echo "$ac_t""no" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10011 with_png=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10012 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10013
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10014 }
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10015 if test -z "$with_png"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10016 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10017 echo "configure:10018: checking for workable png version information" >&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10018 xe_check_libs="-lpng -lz"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10019 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10020 #line 10021 "configure"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10021 #include "confdefs.h"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10022 #include <png.h>
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10023 int main(int c, char **v) {
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10024 if (c == 1) return 0;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10025 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10026 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10027 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10028 if { (eval echo configure:10029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10029 then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10030 ./conftest dummy_arg; png_status=$?;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10031 if test "$png_status" = "0"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10032 with_png=yes;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10033 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10034 with_png=no;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10035 if test "$png_status" = "1"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10036 png_problem="PNG library version and header file don't match!"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10037 elif test "$png_status" = "2"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10038 png_problem="PNG library version too old (pre 1.0.2)!"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10039 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10040 echo "
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10041 *** WARNING *** $png_problem
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10042 I'm not touching that with a 10-foot pole!
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10043 If you really want to use the installed version of libPNG, rerun
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10044 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10045 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10046 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10047 conftest_rc="$?"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10048 echo "configure: failed program was:" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10049 cat conftest.$ac_ext >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10050 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10051 with_png=no
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10052 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10053 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10054 xe_check_libs=
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10055 echo "$ac_t""$with_png" 1>&6
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10056 fi
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10057 if test "$with_png" = "yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10058 { test "$extra_verbose" = "yes" && cat << \EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10059 Defining HAVE_PNG
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10060 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10061 cat >> confdefs.h <<\EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10062 #define HAVE_PNG 1
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10063 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10064 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10065
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10066 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10067 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10068
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10069 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10070 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10071 echo "configure:10072: checking for tiffio.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10072
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10073 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10074 #line 10075 "configure"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10075 #include "confdefs.h"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10076 #include <tiffio.h>
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10077 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10079 { (eval echo configure:10080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10081 if test -z "$ac_err"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10082 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10083 eval "ac_cv_header_$ac_safe=yes"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10084 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10085 echo "$ac_err" >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10086 echo "configure: failed program was:" >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10087 cat conftest.$ac_ext >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10088 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10089 eval "ac_cv_header_$ac_safe=no"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10090 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10091 rm -f conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10093 echo "$ac_t""yes" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10094 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10095 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10096 echo "$ac_t""no" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10097 with_tiff=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10098 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10099 }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10100 test -z "$with_tiff" && {
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
10101 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10102 echo "configure:10103: checking for TIFFClientOpen in -ltiff" >&5
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
10103 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10104
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10105 xe_check_libs=" -ltiff "
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10106 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10107 #line 10108 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10108 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10109 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10110 /* We use char because int might match the return type of a gcc2
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10111 builtin and then its argument prototype would still apply. */
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
10112 char TIFFClientOpen();
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
10113
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
10114 int main() {
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
10115 TIFFClientOpen()
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
10116 ; return 0; }
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
10117 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10118 if { (eval echo configure:10119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10119 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10120 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10121 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10122 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10123 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10124 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10125 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10126 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10127 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10128 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10129
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
10131 echo "$ac_t""yes" 1>&6
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10132 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10133 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10134 echo "$ac_t""no" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10135 with_tiff=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10136 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10137
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10138 }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10139 test -z "$with_tiff" && with_tiff=yes
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10140 if test "$with_tiff" = "yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10141 { test "$extra_verbose" = "yes" && cat << \EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10142 Defining HAVE_TIFF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10143 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10144 cat >> confdefs.h <<\EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10145 #define HAVE_TIFF 1
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10146 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10147 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10148
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10149 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
10150 fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
10151 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
10152
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
10153
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10154 if test "$with_gtk" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10155 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10156 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10157 echo "configure:10158: checking for compface.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10158
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10159 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10160 #line 10161 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10161 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10162 #include <compface.h>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10163 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10165 { (eval echo configure:10166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10167 if test -z "$ac_err"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10168 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10169 eval "ac_cv_header_$ac_safe=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10170 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10171 echo "$ac_err" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10172 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10173 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10174 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10175 eval "ac_cv_header_$ac_safe=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10176 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10177 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10179 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10180 :
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10181 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10182 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10183 with_xface=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10184 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10185 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10186 test -z "$with_xface" && {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10187 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10188 echo "configure:10189: checking for UnGenFace in -lcompface" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10189 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10190
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10191 xe_check_libs=" -lcompface "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10192 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10193 #line 10194 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10194 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10195 /* Override any gcc2 internal prototype to avoid an error. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10196 /* We use char because int might match the return type of a gcc2
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10197 builtin and then its argument prototype would still apply. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10198 char UnGenFace();
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10199
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10200 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10201 UnGenFace()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10202 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10203 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10204 if { (eval echo configure:10205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10205 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10206 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10207 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10208 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10209 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10210 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10211 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10212 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10213 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10214 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10215
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10217 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10218 :
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10219 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10220 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10221 with_xface=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10222 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10223
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10224 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10225 test -z "$with_xface" && with_xface=yes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10226 if test "$with_xface" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10227 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10228 Defining HAVE_XFACE
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10229 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10230 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10231 #define HAVE_XFACE 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10232 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10233 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10234
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10235 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10236 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10237 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10238
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10239
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
10240
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
10241 if test "$with_x11" = "yes"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
10242 echo "checking for X11 graphics libraries" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10243 echo "configure:10244: checking for X11 graphics libraries" >&5
726
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
10244 fi
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
10245
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
10246 case "$with_widgets" in
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
10247 "yes" | "athena") detect_athena=yes ;;
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
10248 *) detect_athena=no ;;
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
10249 esac
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
10250
1f525cb38373 [xemacs-hg @ 2002-01-09 18:58:56 by janv]
janv
parents: 724
diff changeset
10251 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10252 echo "checking for the Athena widgets" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10253 echo "configure:10254: checking for the Athena widgets" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10254
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10255 case "$with_athena" in
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10256 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10257 "3d") athena_variant=Xaw3d athena_3d=yes ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10258 "next") athena_variant=neXtaw athena_3d=yes ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10259 "95") athena_variant=Xaw95 athena_3d=yes ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10260 "xpm") athena_variant=XawXpm athena_3d=yes ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10261 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10262 esac
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10263
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10264 if test "$athena_3d" = "no"; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10265
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10266 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10267 echo "configure:10268: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10268 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10269
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10270 xe_check_libs=" -l$athena_variant "
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10271 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10272 #line 10273 "configure"
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10273 #include "confdefs.h"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10274 /* Override any gcc2 internal prototype to avoid an error. */
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10275 /* We use char because int might match the return type of a gcc2
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10276 builtin and then its argument prototype would still apply. */
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10277 char XawScrollbarSetThumb();
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10278
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10279 int main() {
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10280 XawScrollbarSetThumb()
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10281 ; return 0; }
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10282 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10283 if { (eval echo configure:10284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10284 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10285 eval "ac_cv_lib_$ac_lib_var=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10286 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10287 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10288 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10289 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10290 eval "ac_cv_lib_$ac_lib_var=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10291 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10292 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10293 xe_check_libs=""
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10294
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10296 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10297
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10298 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10299 echo "configure:10300: checking for threeDClassRec in -l$athena_variant" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10300 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10301
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10302 xe_check_libs=" -l$athena_variant "
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10303 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10304 #line 10305 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10305 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10306 /* Override any gcc2 internal prototype to avoid an error. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10307 /* We use char because int might match the return type of a gcc2
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10308 builtin and then its argument prototype would still apply. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10309 char threeDClassRec();
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10310
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10311 int main() {
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10312 threeDClassRec()
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10313 ; return 0; }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10314 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10315 if { (eval echo configure:10316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10316 rm -rf conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10317 eval "ac_cv_lib_$ac_lib_var=yes"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10318 else
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10319 echo "configure: failed program was:" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10320 cat conftest.$ac_ext >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10321 rm -rf conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10322 eval "ac_cv_lib_$ac_lib_var=no"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10323 fi
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10324 rm -f conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10325 xe_check_libs=""
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10326
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10328 echo "$ac_t""yes" 1>&6
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10329 echo "configure: warning: Could not find a non-3d Athena widget library." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10330 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10331 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10332 athena_lib=$athena_variant
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10333 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10334
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10335
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10336
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10337 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10338 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10339 echo "configure: warning: Could not find an Athena widget library." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10340 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10341
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10342
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10343 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10344
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10345 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10346 echo "configure:10347: checking for threeDClassRec in -l$athena_variant" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10347 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10348
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10349 xe_check_libs=" -l$athena_variant "
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10350 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10351 #line 10352 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10352 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10353 /* Override any gcc2 internal prototype to avoid an error. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10354 /* We use char because int might match the return type of a gcc2
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10355 builtin and then its argument prototype would still apply. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10356 char threeDClassRec();
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10357
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10358 int main() {
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10359 threeDClassRec()
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10360 ; return 0; }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10361 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10362 if { (eval echo configure:10363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10363 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10364 eval "ac_cv_lib_$ac_lib_var=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10365 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10366 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10367 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10368 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10369 eval "ac_cv_lib_$ac_lib_var=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10370 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10371 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10372 xe_check_libs=""
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10373
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10375 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10376 athena_lib=$athena_variant
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10377 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10378 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10379 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10380 echo "configure:10381: checking for threeDClassRec in -lXaw" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10381 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10382
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10383 xe_check_libs=" -lXaw "
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10384 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10385 #line 10386 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10386 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10387 /* Override any gcc2 internal prototype to avoid an error. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10388 /* We use char because int might match the return type of a gcc2
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10389 builtin and then its argument prototype would still apply. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10390 char threeDClassRec();
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10391
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10392 int main() {
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10393 threeDClassRec()
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10394 ; return 0; }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10395 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10396 if { (eval echo configure:10397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10397 rm -rf conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10398 eval "ac_cv_lib_$ac_lib_var=yes"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10399 else
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10400 echo "configure: failed program was:" >&5
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10401 cat conftest.$ac_ext >&5
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10402 rm -rf conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10403 eval "ac_cv_lib_$ac_lib_var=no"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10404 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10405 rm -f conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10406 xe_check_libs=""
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10407
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10409 echo "$ac_t""yes" 1>&6
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
10410 athena_lib=Xaw;
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10411 echo "configure: warning: Assuming that libXaw is actually $athena_variant." 1>&2;
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10412
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10413 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10414 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10415 echo "configure: warning: Could not find a 3d Athena widget library that looked like $athena_variant." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10416 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10417
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10418
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10419 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10420
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10421
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10422 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10423
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10424 if test "$athena_3d" = "no"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10425 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10426 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10427 echo "configure:10428: checking for X11/Xaw/ThreeD.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10428
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10429 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10430 #line 10431 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10431 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10432 #include <X11/Xaw/ThreeD.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10433 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10435 { (eval echo configure:10436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10437 if test -z "$ac_err"; then
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10438 rm -rf conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10439 eval "ac_cv_header_$ac_safe=yes"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10440 else
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10441 echo "$ac_err" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10442 echo "configure: failed program was:" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10443 cat conftest.$ac_ext >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10444 rm -rf conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10445 eval "ac_cv_header_$ac_safe=no"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10446 fi
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10447 rm -f conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10449 echo "$ac_t""yes" 1>&6
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10450 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10451 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10452 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10453 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10454 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10455 echo "configure:10456: checking for X11/Xaw/XawInit.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10456
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10457 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10458 #line 10459 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10459 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10460 #include <X11/Xaw/XawInit.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10461 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10463 { (eval echo configure:10464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10465 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10466 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10467 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10468 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10469 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10470 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10471 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10472 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10473 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10474 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10475 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10477 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10478 athena_h_path=X11/Xaw
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10479 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10480 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10481 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10482 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10483
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10484 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10485
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10486 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10487 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10488 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10489 echo "configure:10490: checking for X11/$athena_variant/XawInit.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10490
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10491 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10492 #line 10493 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10493 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10494 #include <X11/$athena_variant/XawInit.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10495 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10497 { (eval echo configure:10498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10499 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10500 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10501 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10502 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10503 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10504 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10505 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10506 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10507 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10508 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10509 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10511 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10512 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10513 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10514 echo "configure:10515: checking for X11/$athena_variant/ThreeD.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10515
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10516 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10517 #line 10518 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10518 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10519 #include <X11/$athena_variant/ThreeD.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10520 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10522 { (eval echo configure:10523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10524 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10525 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10526 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10527 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10528 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10529 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10530 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10531 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10532 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10533 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10534 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10536 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10537 athena_h_path=X11/$athena_variant
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10538 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10539 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10540 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10541
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10542 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10543 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10544 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10545
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10546
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10547 if test -z "$athena_h_path"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10548 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10549 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10550 echo "configure:10551: checking for $athena_variant/XawInit.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10551
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10552 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10553 #line 10554 "configure"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10554 #include "confdefs.h"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10555 #include <$athena_variant/XawInit.h>
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10556 EOF
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10558 { (eval echo configure:10559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10560 if test -z "$ac_err"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10561 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10562 eval "ac_cv_header_$ac_safe=yes"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10563 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10564 echo "$ac_err" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10565 echo "configure: failed program was:" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10566 cat conftest.$ac_ext >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10567 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10568 eval "ac_cv_header_$ac_safe=no"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10569 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10570 rm -f conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10572 echo "$ac_t""yes" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10573 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10574 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10575 echo "configure:10576: checking for $athena_variant/ThreeD.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10576
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10577 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10578 #line 10579 "configure"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10579 #include "confdefs.h"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10580 #include <$athena_variant/ThreeD.h>
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10581 EOF
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10583 { (eval echo configure:10584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10585 if test -z "$ac_err"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10586 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10587 eval "ac_cv_header_$ac_safe=yes"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10588 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10589 echo "$ac_err" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10590 echo "configure: failed program was:" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10591 cat conftest.$ac_ext >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10592 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10593 eval "ac_cv_header_$ac_safe=no"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10594 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10595 rm -f conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10597 echo "$ac_t""yes" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10598 athena_h_path=$athena_variant
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10599 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10600 echo "$ac_t""no" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10601 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10602
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10603 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10604 echo "$ac_t""no" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10605 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10606
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10607 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10608
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10609 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10610 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10611 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10612 echo "configure:10613: checking for X11/Xaw3d/XawInit.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10613
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10614 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10615 #line 10616 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10616 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10617 #include <X11/Xaw3d/XawInit.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10618 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10620 { (eval echo configure:10621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10622 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10623 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10624 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10625 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10626 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10627 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10628 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10629 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10630 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10631 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10632 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10634 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10635 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10636 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10637 echo "configure:10638: checking for X11/Xaw3d/ThreeD.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10638
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10639 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10640 #line 10641 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10641 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10642 #include <X11/Xaw3d/ThreeD.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10643 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10645 { (eval echo configure:10646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10647 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10648 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10649 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10650 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10651 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10652 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10653 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10654 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10655 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10656 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10657 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10659 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10660
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10661 echo "configure: warning: Assuming that X11/Xaw3d headers are suitable for $athena_variant." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10662 athena_h_path=X11/Xaw3d
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10663
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10664 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10665 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10666 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10667
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10668 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10669 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10670 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10671
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10672 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10673
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10674 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10675 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10676 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10677 echo "configure:10678: checking for Xaw3d/XawInit.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10678
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10679 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10680 #line 10681 "configure"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10681 #include "confdefs.h"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10682 #include <Xaw3d/XawInit.h>
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10683 EOF
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10685 { (eval echo configure:10686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10687 if test -z "$ac_err"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10688 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10689 eval "ac_cv_header_$ac_safe=yes"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10690 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10691 echo "$ac_err" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10692 echo "configure: failed program was:" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10693 cat conftest.$ac_ext >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10694 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10695 eval "ac_cv_header_$ac_safe=no"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10696 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10697 rm -f conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10699 echo "$ac_t""yes" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10700 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10701 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10702 echo "configure:10703: checking for Xaw3d/ThreeD.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10703
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10704 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10705 #line 10706 "configure"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10706 #include "confdefs.h"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10707 #include <Xaw3d/ThreeD.h>
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10708 EOF
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10710 { (eval echo configure:10711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10712 if test -z "$ac_err"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10713 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10714 eval "ac_cv_header_$ac_safe=yes"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10715 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10716 echo "$ac_err" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10717 echo "configure: failed program was:" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10718 cat conftest.$ac_ext >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10719 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10720 eval "ac_cv_header_$ac_safe=no"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10721 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10722 rm -f conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10724 echo "$ac_t""yes" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10725
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10726 echo "configure: warning: Assuming that Xaw3d headers are suitable for $athena_variant." 1>&2
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10727 athena_h_path=Xaw3d
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10728
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10729 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10730 echo "$ac_t""no" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10731 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10732
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10733 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10734 echo "$ac_t""no" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10735 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10736
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10737 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
10738
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10739 if test -z "$athena_h_path"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10740 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10741 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10742 echo "configure:10743: checking for X11/Xaw/ThreeD.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10743
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10744 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10745 #line 10746 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10746 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10747 #include <X11/Xaw/ThreeD.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10748 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10750 { (eval echo configure:10751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10752 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10753 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10754 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10755 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10756 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10757 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10758 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10759 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10760 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10761 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10762 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10764 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10765
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10766 echo "configure: warning: Assuming that X11/Xaw headers are suitable for $athena_variant." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10767 athena_h_path=X11/Xaw
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10768
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10769 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10770 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10771 echo "configure: warning: Could not find a suitable 3d Athena header set." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10772 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10773
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10774 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10775 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10776
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10777 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10778 have_xaw=yes
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10779 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10780 have_xaw=no
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10781 fi
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10782
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
10783 else
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
10784 have_xaw=no
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
10785 fi
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
10786 if test "$with_x11" = "yes"; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10787 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10788 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10789 echo "configure:10790: checking for Xm/Xm.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10790
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10791 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10792 #line 10793 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10793 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10794 #include <Xm/Xm.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10795 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10797 { (eval echo configure:10798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10799 if test -z "$ac_err"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10800 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10801 eval "ac_cv_header_$ac_safe=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10802 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10803 echo "$ac_err" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10804 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10805 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10806 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10807 eval "ac_cv_header_$ac_safe=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10808 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10809 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10811 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10812
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10813 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10814 echo "configure:10815: checking for XmStringFree in -lXm" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10815 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10816
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10817 xe_check_libs=" -lXm "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10818 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10819 #line 10820 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10820 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10821 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10822 /* We use char because int might match the return type of a gcc2
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10823 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10824 char XmStringFree();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10825
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10826 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10827 XmStringFree()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10828 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10829 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10830 if { (eval echo configure:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10831 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10832 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10833 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10834 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10835 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10836 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10837 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10838 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10839 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10840 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10841
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10843 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10844 have_motif=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10845 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10846 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10847 have_motif=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10848 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10849
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10850
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10851 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10852 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10853 have_motif=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10854 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10855
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10856
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10857 if test "$have_motif" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10858 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10859 echo "configure:10860: checking for Lesstif" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10860 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
10861 #line 10862 "configure"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10862 #include "confdefs.h"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10863 #include <Xm/Xm.h>
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10864 #ifdef LESSTIF_VERSION
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10865 yes
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10866 #endif
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10867
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10868 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10870 egrep "yes" >/dev/null 2>&1; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10871 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10872 have_lesstif=yes
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10873 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10874 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10875 have_lesstif=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10876 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10877 rm -f conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10878
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10879 echo "$ac_t""$have_lesstif" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10880 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10881
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
10882 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10883
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10884 case "$with_menubars" in "" | "yes" | "athena" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10885 with_menubars="lucid" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10886 esac
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
10887 case "$with_dialogs" in "" | "yes" | "lucid" )
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10888 if test "$have_motif" = "yes"; then with_dialogs="motif"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10889 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
10890 elif test "$with_msw" = "yes"; then with_dialogs="msw"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10891 else with_dialogs=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10892 fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10893 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10894 case "$with_scrollbars" in "" | "yes" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10895 with_scrollbars="lucid" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10896 esac
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10897 case "$with_widgets" in "" | "yes" | "lucid")
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10898 if test "$have_motif" = "yes"; then with_widgets="motif"
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10899 elif test "$have_xaw" = "yes"; then with_widgets="athena"
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
10900 elif test "$with_msw" = "yes"; then with_widgets="msw"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10901 else with_widgets=no
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10902 fi ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10903 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10904
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10905 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 410
diff changeset
10906
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10907 case "$all_widgets" in
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10908 *athena* )
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10909 if test "$have_xaw" != "yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10910 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10911 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10912
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10913 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10914
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10915 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10916
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10917 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10918 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10919 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10920 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10921 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10922 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10923 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10924
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10925 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10926 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10927 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10928 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10929 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10930 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10931 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10932
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10933 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10934 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10935 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10936 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10937 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10938 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10939 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10940
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10941 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10942 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10943 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10944 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10945 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10946 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10947 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10948
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10949 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10950 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10951 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10952 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10953 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10954 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10955 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10956
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10957 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10958 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10959 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10960 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10961 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10962 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10963 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10964
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10965 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10966 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10967 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10968 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10969 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10970 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10971 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10972
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10973 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10974 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10975 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10976 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10977 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10978 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10979 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10980
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10981 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10982 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10983 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10984 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10985 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10986 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10987 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10988
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10989 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10990 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10991 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10992 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10993 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10994 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10995 }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10996
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10997
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
10998 { test "$extra_verbose" = "yes" && cat << \EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
10999 Defining LWLIB_USES_ATHENA
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11000 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11001 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11002 #define LWLIB_USES_ATHENA 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11003 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11004 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11005
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11006 { test "$extra_verbose" = "yes" && cat << \EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11007 Defining NEED_ATHENA
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11008 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11009 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11010 #define NEED_ATHENA 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11011 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11012 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11013
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11014 need_athena="yes"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11015
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11016 if test "$athena_3d" = "yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11017 { test "$extra_verbose" = "yes" && cat << \EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11018 Defining HAVE_ATHENA_3D
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11019 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11020 cat >> confdefs.h <<\EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11021 #define HAVE_ATHENA_3D 1
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11022 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11023 }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11024
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11025 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11026 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11027 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11028
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11029 case "$all_widgets" in *motif* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11030 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11031 Defining LWLIB_USES_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11032 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11033 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11034 #define LWLIB_USES_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11035 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11036 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11037
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11038 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11039 Defining NEED_MOTIF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11040 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11041 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11042 #define NEED_MOTIF 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11043 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11044 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11045
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11046 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11047 need_motif=yes ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
11048 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
11049
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11050 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
11051 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11052 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11053 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11054 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11055 case "$with_widgets" in athena* )
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11056 lwlib_objs="$lwlib_objs xlwradio.o xlwcheckbox.o xlwgauge.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwradio.o xlwcheckbox.o xlwgauge.o\" to \$lwlib_objs"; fi;;
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11057 esac
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11058 case "$all_widgets" in *lucid* )
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11059 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11060 Defining NEED_LUCID
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11061 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11062 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11063 #define NEED_LUCID 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11064 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11065 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11066
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11067 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11068 esac
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11069
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11070
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
11071
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11072 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11073 Defining LWLIB_SCROLLBARS_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11074 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11075 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11076 #define LWLIB_SCROLLBARS_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11077 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11078 }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11079
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11080 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11081 Defining LWLIB_DIALOGS_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11082 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11083 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11084 #define LWLIB_DIALOGS_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11085 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11086 }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11087
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11088
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11089 if test "$athena_3d" = "yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11090 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11091 Defining LWLIB_SCROLLBARS_ATHENA3D
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11092 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11093 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11094 #define LWLIB_SCROLLBARS_ATHENA3D 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11095 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11096 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11097
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11098 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11099 Defining LWLIB_DIALOGS_ATHENA3D
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11100 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11101 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11102 #define LWLIB_DIALOGS_ATHENA3D 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11103 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11104 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11105
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11106 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
11107
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11108 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11109 Defining LWLIB_WIDGETS_ATHENA
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11110 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11111 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11112 #define LWLIB_WIDGETS_ATHENA 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11113 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11114 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11115 ;; esac
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11116 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11117 { test "$extra_verbose" = "yes" && cat << \EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11118 Defining LWLIB_TABS_LUCID
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11119 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11120 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11121 #define LWLIB_TABS_LUCID 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11122 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11123 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11124
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11125
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11126 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11127 Defining HAVE_MENUBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11128 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11129 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11130 #define HAVE_MENUBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11131 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11132 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11133
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11134 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11135 Defining HAVE_SCROLLBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11136 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11137 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11138 #define HAVE_SCROLLBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11139 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11140 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11141
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11142 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11143 Defining HAVE_DIALOGS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11144 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11145 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11146 #define HAVE_DIALOGS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11147 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11148 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11150 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11151 Defining HAVE_TOOLBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11152 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11153 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11154 #define HAVE_TOOLBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11155 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11156 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11157
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
11158 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11159 Defining HAVE_WIDGETS
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11160 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11161 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11162 #define HAVE_WIDGETS 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11163 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11164 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11165
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11166
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11167 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11168 Defining LWLIB_MENUBARS_LUCID
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11169 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11170 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11171 #define LWLIB_MENUBARS_LUCID 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11172 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11173 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11174
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11175 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11176 Defining LWLIB_SCROLLBARS_LUCID
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11177 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11178 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11179 #define LWLIB_SCROLLBARS_LUCID 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11180 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11181 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11182
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11183
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11184 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11185 Defining LWLIB_MENUBARS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11186 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11187 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11188 #define LWLIB_MENUBARS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11189 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11190 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11191
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11192 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11193 Defining LWLIB_SCROLLBARS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11194 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11195 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11196 #define LWLIB_SCROLLBARS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11197 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11198 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11199
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11200 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11201 Defining LWLIB_DIALOGS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11202 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11203 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11204 #define LWLIB_DIALOGS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11205 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11206 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11207
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11208 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11209 Defining LWLIB_WIDGETS_MOTIF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11210 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11211 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11212 #define LWLIB_WIDGETS_MOTIF 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11213 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11214 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
11215
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 410
diff changeset
11216
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11217
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11218 test -z "$with_mule" && with_mule=no
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
11219
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
11220
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
11221 if test "$with_default_eol_detection" = "yes"; then
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
11222 { test "$extra_verbose" = "yes" && cat << \EOF
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
11223 Defining HAVE_DEFAULT_EOL_DETECTION
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
11224 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
11225 cat >> confdefs.h <<\EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
11226 #define HAVE_DEFAULT_EOL_DETECTION 1
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
11227 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
11228 }
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
11229
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
11230 fi
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11231
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11232 if test "$with_mule" = "yes" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11233 echo "checking for Mule-related features" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11234 echo "configure:11235: checking for Mule-related features" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11235 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11236 Defining MULE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11237 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11238 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11239 #define MULE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11240 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11241 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11242
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11243
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11244 for ac_hdr in libintl.h
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11245 do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11248 echo "configure:11249: checking for $ac_hdr" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11249
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11250 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11251 #line 11252 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11252 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11253 #include <$ac_hdr>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11254 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11256 { (eval echo configure:11257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11258 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11259 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11260 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11261 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11262 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11263 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11264 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11265 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11266 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11267 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11268 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11270 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11272 { test "$extra_verbose" = "yes" && cat << EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11273 Defining $ac_tr_hdr
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11274 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11275 cat >> confdefs.h <<EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11276 #define $ac_tr_hdr 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11277 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11278 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11279
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11280 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11281 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11282 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11283 done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11284
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11285
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11286 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11287 echo "configure:11288: checking for strerror in -lintl" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11288 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11289
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11290 xe_check_libs=" -lintl "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11291 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11292 #line 11293 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11293 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11294 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11295 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11296 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11297 char strerror();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11298
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11299 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11300 strerror()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11301 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11302 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11303 if { (eval echo configure:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11304 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11305 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11306 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11307 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11308 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11309 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11310 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11311 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11312 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11313 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11314
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11316 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11317 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11318 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11319 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11320 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11321 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11322 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11323 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11324 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11325 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11326
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11327 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11328
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11329 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11330 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11331 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11332
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11333
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11334
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11335 echo "checking for Mule input methods" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11336 echo "configure:11337: checking for Mule input methods" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11337 case "$with_xim" in "" | "yes" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11338 echo "checking for XIM" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11339 echo "configure:11340: checking for XIM" >&5
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11340
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11341 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11342 echo "configure:11343: checking for XOpenIM in -lX11" >&5
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11343 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11344
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11345 xe_check_libs=" -lX11 "
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11346 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11347 #line 11348 "configure"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11348 #include "confdefs.h"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11349 /* Override any gcc2 internal prototype to avoid an error. */
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11350 /* We use char because int might match the return type of a gcc2
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11351 builtin and then its argument prototype would still apply. */
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11352 char XOpenIM();
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11353
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11354 int main() {
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11355 XOpenIM()
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11356 ; return 0; }
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11357 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11358 if { (eval echo configure:11359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11359 rm -rf conftest*
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11360 eval "ac_cv_lib_$ac_lib_var=yes"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11361 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11362 echo "configure: failed program was:" >&5
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11363 cat conftest.$ac_ext >&5
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11364 rm -rf conftest*
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11365 eval "ac_cv_lib_$ac_lib_var=no"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11366 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11367 rm -f conftest*
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11368 xe_check_libs=""
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11369
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11371 echo "$ac_t""yes" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11372 with_xim=xlib
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11373 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11374 echo "$ac_t""no" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11375 with_xim=no
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11376 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11377
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11378
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11379 if test "$have_motif $have_lesstif" = "yes no"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11380
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11381 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11382 echo "configure:11383: checking for XmImMbLookupString in -lXm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11383 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11384
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11385 xe_check_libs=" -lXm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11386 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11387 #line 11388 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11388 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11389 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11390 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11391 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11392 char XmImMbLookupString();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11393
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11394 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11395 XmImMbLookupString()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11396 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11397 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11398 if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11399 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11400 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11401 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11402 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11403 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11404 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11405 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11406 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11407 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11408 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11409
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11411 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11412 with_xim=motif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11413 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11414 echo "$ac_t""no" 1>&6
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11415 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11416
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11417
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11418 fi ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11419 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
11420 if test "$with_xim" != "no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11421 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11422 Defining HAVE_XIM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11423 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11424 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11425 #define HAVE_XIM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11426 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11427 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11428
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11429 if test "$with_xim" = "xlib"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11430 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11431 Defining XIM_XLIB
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11432 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11433 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11434 #define XIM_XLIB 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11435 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11436 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11437
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11438 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11439 echo " xemacs will be linked with \"input-method-xlib.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11440 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11441 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11442 if test "$with_xim" = "motif"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11443 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11444 Defining XIM_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11445 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11446 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11447 #define XIM_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11448 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11449 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11450
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11451 need_motif=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11452 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11453 echo " xemacs will be linked with \"input-method-motif.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11454 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11455 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11456 if test "$with_xim" = "motif"; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11457 with_xfs=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11458 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11459 fi
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11460
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11461 if test "$with_xfs" = "yes" ; then
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11462 echo "checking for XFontSet" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11463 echo "configure:11464: checking for XFontSet" >&5
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11464
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11465 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11466 echo "configure:11467: checking for XmbDrawString in -lX11" >&5
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11467 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11468
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11469 xe_check_libs=" -lX11 "
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11470 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11471 #line 11472 "configure"
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11472 #include "confdefs.h"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11473 /* Override any gcc2 internal prototype to avoid an error. */
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11474 /* We use char because int might match the return type of a gcc2
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11475 builtin and then its argument prototype would still apply. */
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11476 char XmbDrawString();
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11477
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11478 int main() {
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11479 XmbDrawString()
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11480 ; return 0; }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11481 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11482 if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11483 rm -rf conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11484 eval "ac_cv_lib_$ac_lib_var=yes"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11485 else
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11486 echo "configure: failed program was:" >&5
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11487 cat conftest.$ac_ext >&5
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11488 rm -rf conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11489 eval "ac_cv_lib_$ac_lib_var=no"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11490 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11491 rm -f conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11492 xe_check_libs=""
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11493
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11495 echo "$ac_t""yes" 1>&6
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11496 :
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11497 else
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11498 echo "$ac_t""no" 1>&6
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11499 with_xfs=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11500 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11501
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11502
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11503 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11504 { test "$extra_verbose" = "yes" && cat << \EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11505 Defining USE_XFONTSET
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11506 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11507 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11508 #define USE_XFONTSET 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11509 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11510 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11511
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11512 if test "$with_xim" = "no" ; then
450
98528da0b7fc Import from CVS: tag r21-2-40
cvs
parents: 448
diff changeset
11513 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
98528da0b7fc Import from CVS: tag r21-2-40
cvs
parents: 448
diff changeset
11514 echo " xemacs will be linked with \"input-method-xlib.o\""
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11515 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
11516 fi
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
11517 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11518 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11519 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11520 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11521 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11522 echo "configure:11523: checking for wnn/jllib.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11523
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11524 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11525 #line 11526 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11526 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11527 #include <wnn/jllib.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11528 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11530 { (eval echo configure:11531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11532 if test -z "$ac_err"; then
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11533 rm -rf conftest*
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11534 eval "ac_cv_header_$ac_safe=yes"
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11535 else
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11536 echo "$ac_err" >&5
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11537 echo "configure: failed program was:" >&5
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11538 cat conftest.$ac_ext >&5
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11539 rm -rf conftest*
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11540 eval "ac_cv_header_$ac_safe=no"
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11541 fi
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11542 rm -f conftest*
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11544 echo "$ac_t""yes" 1>&6
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11545 :
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11546 else
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11547 echo "$ac_t""no" 1>&6
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11548 with_wnn=no
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11549 fi
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11550 }
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11551 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11552 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11553 echo "configure:11554: checking for wnn/commonhd.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11554
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11555 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11556 #line 11557 "configure"
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11557 #include "confdefs.h"
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11558 #include <wnn/commonhd.h>
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11559 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11561 { (eval echo configure:11562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11563 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11564 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11565 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11566 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11567 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11568 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11569 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11570 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11571 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11572 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11573 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11575 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11576 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11577 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11578 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11579 with_wnn=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11580 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11581 }
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11582 if test "$with_wnn" != "no"; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11583 for ac_func in crypt
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11584 do
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11586 echo "configure:11587: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11587
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11588 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11589 #line 11590 "configure"
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11590 #include "confdefs.h"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11591 /* System header to define __stub macros and hopefully few prototypes,
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11592 which can conflict with char $ac_func(); below. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11593 #include <assert.h>
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11594 /* Override any gcc2 internal prototype to avoid an error. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11595 /* We use char because int might match the return type of a gcc2
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11596 builtin and then its argument prototype would still apply. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11597 char $ac_func();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11598
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11599 int main() {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11600
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11601 /* The GNU C library defines this for functions which it implements
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11602 to always fail with ENOSYS. Some functions are actually named
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11603 something starting with __ and the normal name is an alias. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11605 choke me
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11606 #else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11607 $ac_func();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11608 #endif
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11609
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11610 ; return 0; }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11611 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11612 if { (eval echo configure:11613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11613 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11614 eval "ac_cv_func_$ac_func=yes"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11615 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11616 echo "configure: failed program was:" >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11617 cat conftest.$ac_ext >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11618 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11619 eval "ac_cv_func_$ac_func=no"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11620 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11621 rm -f conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11622
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11624 echo "$ac_t""yes" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11625 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11626 { test "$extra_verbose" = "yes" && cat << EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11627 Defining $ac_tr_func
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11628 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11629 cat >> confdefs.h <<EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11630 #define $ac_tr_func 1
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11631 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11632 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11633
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11634 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11635 echo "$ac_t""no" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11636 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11637 done
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11638
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11639 test "$ac_cv_func_crypt" != "yes" && {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11640 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11641 echo "configure:11642: checking for crypt in -lcrypt" >&5
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11642 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11643
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11644 xe_check_libs=" -lcrypt "
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11645 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11646 #line 11647 "configure"
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11647 #include "confdefs.h"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11648 /* Override any gcc2 internal prototype to avoid an error. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11649 /* We use char because int might match the return type of a gcc2
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11650 builtin and then its argument prototype would still apply. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11651 char crypt();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11652
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11653 int main() {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11654 crypt()
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11655 ; return 0; }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11656 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11657 if { (eval echo configure:11658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11658 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11659 eval "ac_cv_lib_$ac_lib_var=yes"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11660 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11661 echo "configure: failed program was:" >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11662 cat conftest.$ac_ext >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11663 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11664 eval "ac_cv_lib_$ac_lib_var=no"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11665 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11666 rm -f conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11667 xe_check_libs=""
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11668
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11670 echo "$ac_t""yes" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11671 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11672 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11673 { test "$extra_verbose" = "yes" && cat << EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11674 Defining $ac_tr_lib
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11675 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11676 cat >> confdefs.h <<EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11677 #define $ac_tr_lib 1
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11678 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11679 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11680
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11681 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11682
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11683 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11684 echo "$ac_t""no" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11685 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11686
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11687 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
11688 fi
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11689 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11690
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11691 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11692 echo "configure:11693: checking for jl_dic_list_e in -lwnn" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11693 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11694
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11695 xe_check_libs=" -lwnn "
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11696 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11697 #line 11698 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11698 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11699 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11700 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11701 builtin and then its argument prototype would still apply. */
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11702 char jl_dic_list_e();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11703
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11704 int main() {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11705 jl_dic_list_e()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11706 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11707 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11708 if { (eval echo configure:11709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11709 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11710 eval "ac_cv_lib_$ac_lib_var=yes"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11711 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11712 echo "configure: failed program was:" >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11713 cat conftest.$ac_ext >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11714 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11715 eval "ac_cv_lib_$ac_lib_var=no"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11716 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11717 rm -f conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11718 xe_check_libs=""
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11719
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11721 echo "$ac_t""yes" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11722 libwnn=wnn
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11723 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11724 echo "$ac_t""no" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11725 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11726 echo "configure:11727: checking for jl_dic_list_e in -lwnn4" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11727 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11728
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11729 xe_check_libs=" -lwnn4 "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11730 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11731 #line 11732 "configure"
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11732 #include "confdefs.h"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11733 /* Override any gcc2 internal prototype to avoid an error. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11734 /* We use char because int might match the return type of a gcc2
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11735 builtin and then its argument prototype would still apply. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11736 char jl_dic_list_e();
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11737
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11738 int main() {
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11739 jl_dic_list_e()
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11740 ; return 0; }
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11741 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11742 if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11743 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11744 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11745 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11746 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11747 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11748 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11749 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11750 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11751 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11752 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11753
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11755 echo "$ac_t""yes" 1>&6
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11756 libwnn=wnn4
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11757 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11758 echo "$ac_t""no" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11759 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11760 echo "configure:11761: checking for jl_dic_list_e in -lwnn6" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11761 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11762
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11763 xe_check_libs=" -lwnn6 "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11764 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11765 #line 11766 "configure"
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11766 #include "confdefs.h"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11767 /* Override any gcc2 internal prototype to avoid an error. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11768 /* We use char because int might match the return type of a gcc2
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11769 builtin and then its argument prototype would still apply. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11770 char jl_dic_list_e();
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11771
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11772 int main() {
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11773 jl_dic_list_e()
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11774 ; return 0; }
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11775 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11776 if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11777 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11778 eval "ac_cv_lib_$ac_lib_var=yes"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11779 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11780 echo "configure: failed program was:" >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11781 cat conftest.$ac_ext >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11782 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11783 eval "ac_cv_lib_$ac_lib_var=no"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11784 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11785 rm -f conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11786 xe_check_libs=""
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11787
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11789 echo "$ac_t""yes" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11790 libwnn=wnn6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11791 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11792 echo "$ac_t""no" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11793 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11794 echo "configure:11795: checking for dic_list_e in -lwnn6_fromsrc" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11795 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11796
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11797 xe_check_libs=" -lwnn6_fromsrc "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11798 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11799 #line 11800 "configure"
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11800 #include "confdefs.h"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11801 /* Override any gcc2 internal prototype to avoid an error. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11802 /* We use char because int might match the return type of a gcc2
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11803 builtin and then its argument prototype would still apply. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11804 char dic_list_e();
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11805
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11806 int main() {
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11807 dic_list_e()
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11808 ; return 0; }
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11809 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11810 if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11811 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11812 eval "ac_cv_lib_$ac_lib_var=yes"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11813 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11814 echo "configure: failed program was:" >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11815 cat conftest.$ac_ext >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11816 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11817 eval "ac_cv_lib_$ac_lib_var=no"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11818 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11819 rm -f conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11820 xe_check_libs=""
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11821
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11823 echo "$ac_t""yes" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11824 libwnn=wnn6_fromsrc
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11825 else
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11826 echo "$ac_t""no" 1>&6
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
11827 with_wnn=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11828 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11829
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11830
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11831 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11832
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11833
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11834 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11835
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11836
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11837 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11838
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11839
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11840 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11841 test -z "$with_wnn" && with_wnn=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11842 if test "$with_wnn" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11843 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11844 Defining HAVE_WNN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11845 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11846 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11847 #define HAVE_WNN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11848 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11849 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11850
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11851 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
11852 if test "$with_wnn6" != "no"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
11853
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11854 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11855 echo "configure:11856: checking for jl_fi_dic_list in -l$libwnn" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11856 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11857
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11858 xe_check_libs=" -l$libwnn "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
11859 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11860 #line 11861 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11861 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11862 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11863 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11864 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11865 char jl_fi_dic_list();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11866
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11867 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11868 jl_fi_dic_list()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11869 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11870 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11871 if { (eval echo configure:11872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11872 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11873 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11874 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11875 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11876 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11877 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11878 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11879 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11880 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11881 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11882
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11884 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11885 with_wnn6=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11886 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11887 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11888 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11889
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11890
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
11891 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11892 Defining WNN6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11893 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11894 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11895 #define WNN6 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11896 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11897 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11898
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
11899 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11900 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11901
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11902 canna_includes_found=no
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11903 if test "$with_canna" != "no"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11904 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11905 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11906 echo "configure:11907: checking for canna/jrkanji.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11907
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11908 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11909 #line 11910 "configure"
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11910 #include "confdefs.h"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11911 #include <canna/jrkanji.h>
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11912 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11914 { (eval echo configure:11915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11916 if test -z "$ac_err"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11917 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11918 eval "ac_cv_header_$ac_safe=yes"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11919 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11920 echo "$ac_err" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11921 echo "configure: failed program was:" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11922 cat conftest.$ac_ext >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11923 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11924 eval "ac_cv_header_$ac_safe=no"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11925 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11926 rm -f conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11928 echo "$ac_t""yes" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11929 canna_includes_found=yes
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11930 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11931 echo "$ac_t""no" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11932 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11933
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11934 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11935 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11936 -d "/usr/local/canna/include"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11937 save_c_switch_site="$c_switch_site"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11938 c_switch_site="$c_switch_site -I/usr/local/canna/include"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11939 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11940 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11941 echo "configure:11942: checking for canna/jrkanji.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11942
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11943 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11944 #line 11945 "configure"
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11945 #include "confdefs.h"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11946 #include <canna/jrkanji.h>
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11947 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11949 { (eval echo configure:11950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11951 if test -z "$ac_err"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11952 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11953 eval "ac_cv_header_$ac_safe=yes"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11954 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11955 echo "$ac_err" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11956 echo "configure: failed program was:" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11957 cat conftest.$ac_ext >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11958 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11959 eval "ac_cv_header_$ac_safe=no"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11960 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11961 rm -f conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11963 echo "$ac_t""yes" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11964 canna_includes_found=yes
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11965 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11966 echo "$ac_t""no" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11967 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11968
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11969 if test "$canna_includes_found" != "yes"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11970 c_switch_site="$save_c_switch_site"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11971 with_canna="no"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11972 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11973 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11974
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
11975 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11976 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11977 echo "configure:11978: checking for canna/RK.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11978
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11979 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11980 #line 11981 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11981 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11982 #include <canna/RK.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11983 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
11985 { (eval echo configure:11986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11987 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11988 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11989 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11990 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11991 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11992 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11993 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11994 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11995 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11996 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11997 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11999 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12000 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12001 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12002 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12003 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12004 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12005 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12006 test -z "$with_canna" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12007 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12008 echo "configure:12009: checking for RkBgnBun in -lRKC" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12009 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12010
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12011 xe_check_libs=" -lRKC "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12012 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12013 #line 12014 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12014 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12015 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12016 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12017 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12018 char RkBgnBun();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12019
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12020 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12021 RkBgnBun()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12022 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12023 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12024 if { (eval echo configure:12025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12025 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12026 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12027 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12028 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12029 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12030 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12031 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12032 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12033 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12034 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12035
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12037 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12038 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12039 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12040 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12041 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12042 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12043
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12044 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12045 test -z "$with_canna" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12046 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12047 echo "configure:12048: checking for jrKanjiControl in -lcanna" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12048 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12049
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12050 xe_check_libs=" -lcanna "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12051 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12052 #line 12053 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12053 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12054 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12055 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12056 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12057 char jrKanjiControl();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12058
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12059 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12060 jrKanjiControl()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12061 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12062 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12063 if { (eval echo configure:12064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12064 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12065 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12066 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12067 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12068 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12069 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12070 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12071 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12072 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12073 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12074
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12076 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12077 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12078 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12079 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12080 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12081 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12082
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12083 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12084 test -z "$with_canna" && with_canna=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12085 if test "$with_canna" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12086 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12087 Defining HAVE_CANNA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12088 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12089 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12090 #define HAVE_CANNA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12091 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12092 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12093
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12094 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12095 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12096
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12097 else for feature in xim canna wnn; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12098 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
12099 echo "configure: warning: --with-${feature} ignored: Not valid without Mule support" 1>&2
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12100 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12101 eval "with_${feature}=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12102 done
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12103 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12104
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12105 if test "$need_motif" = "yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12106 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12107
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12108 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12109 echo "configure:12110: checking for layout_object_getvalue in -li18n" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12110 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12111
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12112 xe_check_libs=" -li18n "
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12113 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12114 #line 12115 "configure"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12115 #include "confdefs.h"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12116 /* Override any gcc2 internal prototype to avoid an error. */
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12117 /* We use char because int might match the return type of a gcc2
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12118 builtin and then its argument prototype would still apply. */
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12119 char layout_object_getvalue();
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12120
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12121 int main() {
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12122 layout_object_getvalue()
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12123 ; return 0; }
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12124 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12125 if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12126 rm -rf conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12127 eval "ac_cv_lib_$ac_lib_var=yes"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12128 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12129 echo "configure: failed program was:" >&5
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12130 cat conftest.$ac_ext >&5
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12131 rm -rf conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12132 eval "ac_cv_lib_$ac_lib_var=no"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12133 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12134 rm -f conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12135 xe_check_libs=""
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12136
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12138 echo "$ac_t""yes" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12139 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12140 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12141 echo "$ac_t""no" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12142 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12143
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
12144
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12145
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12146 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
12147 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
12148 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12149
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12150 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12151 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12152 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12153 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12154 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12155 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12156 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12157 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12158 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
12159 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12160 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12161 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12162 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12163 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
12164 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12165 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12166 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12167 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12168 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12169 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12170 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12171 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12172 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12173 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12174 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
12175 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12176 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12177 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
12178 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12179 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12180 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12181 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12182 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12183 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12184 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12185 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12186 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12187 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12188 ld_switch_run="${dash_r}${runpath}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
12189
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
12190 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
12191 set x $ld_switch_run; shift; ld_switch_run=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
12192 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
12193 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
12194 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
12195 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
12196 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
12197 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
12198 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
12199 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
12200 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
12201 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12202 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12203 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12204 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12205
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12206 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12207
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
12208
1202
6041a741b6d6 [xemacs-hg @ 2003-01-12 11:03:13 by michaels]
michaels
parents: 1161
diff changeset
12209 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror strlwr strupr symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask wcslen wcscmp
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12210 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12212 echo "configure:12213: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12213
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12214 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12215 #line 12216 "configure"
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12216 #include "confdefs.h"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12217 /* System header to define __stub macros and hopefully few prototypes,
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12218 which can conflict with char $ac_func(); below. */
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12219 #include <assert.h>
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12220 /* Override any gcc2 internal prototype to avoid an error. */
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12221 /* We use char because int might match the return type of a gcc2
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12222 builtin and then its argument prototype would still apply. */
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12223 char $ac_func();
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12224
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12225 int main() {
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12226
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12227 /* The GNU C library defines this for functions which it implements
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12228 to always fail with ENOSYS. Some functions are actually named
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12229 something starting with __ and the normal name is an alias. */
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12231 choke me
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12232 #else
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12233 $ac_func();
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12234 #endif
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12235
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12236 ; return 0; }
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12237 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12238 if { (eval echo configure:12239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12239 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12240 eval "ac_cv_func_$ac_func=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12241 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12242 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12243 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12244 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12245 eval "ac_cv_func_$ac_func=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12246 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12247 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12248
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12250 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12252 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12253 Defining $ac_tr_func
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12254 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12255 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12256 #define $ac_tr_func 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12257 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12258 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12259
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12260 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12261 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12262 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12263 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12264
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12265
1070
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
12266 if test "$ac_cv_func_getaddrinfo" != "no" ; then
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
12267 case "$opsys" in
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
12268 hpux11 )
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
12269 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
12270 ac_cv_func_getaddrinfo=no
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
12271 ;;
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
12272 esac
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
12273 fi
989ddde6705d [xemacs-hg @ 2002-10-24 16:19:39 by youngs]
youngs
parents: 997
diff changeset
12274
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
12275
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
12276 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12277 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12279 echo "configure:12280: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12280
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12281 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12282 #line 12283 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12283 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12284 /* System header to define __stub macros and hopefully few prototypes,
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12285 which can conflict with char $ac_func(); below. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12286 #include <assert.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12287 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12288 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12289 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12290 char $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12291
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12292 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12293
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12294 /* The GNU C library defines this for functions which it implements
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12295 to always fail with ENOSYS. Some functions are actually named
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12296 something starting with __ and the normal name is an alias. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12298 choke me
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12299 #else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12300 $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12301 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12302
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12303 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12304 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12305 if { (eval echo configure:12306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12306 rm -rf conftest*
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12307 eval "ac_cv_func_$ac_func=yes"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12308 else
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12309 echo "configure: failed program was:" >&5
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12310 cat conftest.$ac_ext >&5
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12311 rm -rf conftest*
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12312 eval "ac_cv_func_$ac_func=no"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12313 fi
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12314 rm -f conftest*
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12315
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12317 echo "$ac_t""yes" 1>&6
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12319 { test "$extra_verbose" = "yes" && cat << EOF
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12320 Defining $ac_tr_func
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12321 EOF
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12322 cat >> confdefs.h <<EOF
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12323 #define $ac_tr_func 1
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12324 EOF
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12325 }
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12326
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12327 else
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12328 echo "$ac_t""no" 1>&6
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12329 fi
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12330 done
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12331
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12332
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12333 echo $ac_n "checking for openpty""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12334 echo "configure:12335: checking for openpty" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12335
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12336 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12337 #line 12338 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12338 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12339 /* System header to define __stub macros and hopefully few prototypes,
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12340 which can conflict with char openpty(); below. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12341 #include <assert.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12342 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12343 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12344 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12345 char openpty();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12346
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12347 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12348
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12349 /* The GNU C library defines this for functions which it implements
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12350 to always fail with ENOSYS. Some functions are actually named
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12351 something starting with __ and the normal name is an alias. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12352 #if defined (__stub_openpty) || defined (__stub___openpty)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12353 choke me
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12354 #else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12355 openpty();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12356 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12357
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12358 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12359 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12360 if { (eval echo configure:12361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12361 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12362 eval "ac_cv_func_openpty=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12363 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12364 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12365 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12366 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12367 eval "ac_cv_func_openpty=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12368 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12369 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12370
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12371 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12372 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12373 have_openpty=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12374 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12375 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12376
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12377
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12378 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12379 echo "configure:12380: checking for openpty in -lutil" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12380 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12381
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12382 xe_check_libs=" -lutil "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12383 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12384 #line 12385 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12385 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12386 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12387 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12388 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12389 char openpty();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12390
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12391 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12392 openpty()
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12393 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12394 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12395 if { (eval echo configure:12396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12396 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12397 eval "ac_cv_lib_$ac_lib_var=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12398 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12399 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12400 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12401 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12402 eval "ac_cv_lib_$ac_lib_var=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12403 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12404 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12405 xe_check_libs=""
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12406
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12408 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12409 have_openpty=yes need_libutil=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12410 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12411 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12412 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12413
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12414
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12415 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12416
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12417 if test "$have_openpty" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12418 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12419 Defining HAVE_OPENPTY
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12420 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12421 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12422 #define HAVE_OPENPTY 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12423 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12424 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12425
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12426 for ac_hdr in libutil.h util.h
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12427 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12430 echo "configure:12431: checking for $ac_hdr" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12431
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12432 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12433 #line 12434 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12434 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12435 #include <$ac_hdr>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12436 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12438 { (eval echo configure:12439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12440 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12441 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12442 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12443 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12444 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12445 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12446 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12447 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12448 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12449 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12450 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12452 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12454 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12455 Defining $ac_tr_hdr
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12456 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12457 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12458 #define $ac_tr_hdr 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12459 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12460 }
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
12461 break
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12462 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12463 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12464 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12465 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12466
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12467 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12468 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12469
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12470 case "$opsys" in
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12471 hpux*) for ac_hdr in sys/ptyio.h
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12472 do
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12475 echo "configure:12476: checking for $ac_hdr" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12476
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12477 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12478 #line 12479 "configure"
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12479 #include "confdefs.h"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12480 #include <$ac_hdr>
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12481 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12483 { (eval echo configure:12484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12485 if test -z "$ac_err"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12486 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12487 eval "ac_cv_header_$ac_safe=yes"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12488 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12489 echo "$ac_err" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12490 echo "configure: failed program was:" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12491 cat conftest.$ac_ext >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12492 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12493 eval "ac_cv_header_$ac_safe=no"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12494 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12495 rm -f conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12497 echo "$ac_t""yes" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12499 { test "$extra_verbose" = "yes" && cat << EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12500 Defining $ac_tr_hdr
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12501 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12502 cat >> confdefs.h <<EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12503 #define $ac_tr_hdr 1
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12504 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12505 }
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12506
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12507 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12508 echo "$ac_t""no" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12509 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12510 done
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12511 ;;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
12512 *) for ac_hdr in pty.h
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12513 do
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12514 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12515 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12516 echo "configure:12517: checking for $ac_hdr" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12517
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12518 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12519 #line 12520 "configure"
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12520 #include "confdefs.h"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12521 #include <$ac_hdr>
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12522 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12524 { (eval echo configure:12525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12526 if test -z "$ac_err"; then
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12527 rm -rf conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12528 eval "ac_cv_header_$ac_safe=yes"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12529 else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12530 echo "$ac_err" >&5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12531 echo "configure: failed program was:" >&5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12532 cat conftest.$ac_ext >&5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12533 rm -rf conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12534 eval "ac_cv_header_$ac_safe=no"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12535 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12536 rm -f conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12538 echo "$ac_t""yes" 1>&6
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12540 { test "$extra_verbose" = "yes" && cat << EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12541 Defining $ac_tr_hdr
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12542 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12543 cat >> confdefs.h <<EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12544 #define $ac_tr_hdr 1
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12545 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12546 }
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12547
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12548 else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12549 echo "$ac_t""no" 1>&6
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12550 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12551 done
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12552
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12553 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12554 do
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12557 echo "configure:12558: checking for $ac_hdr" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12558
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12559 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12560 #line 12561 "configure"
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12561 #include "confdefs.h"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12562 #include <$ac_hdr>
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12563 EOF
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12565 { (eval echo configure:12566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12567 if test -z "$ac_err"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12568 rm -rf conftest*
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12569 eval "ac_cv_header_$ac_safe=yes"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12570 else
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12571 echo "$ac_err" >&5
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12572 echo "configure: failed program was:" >&5
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12573 cat conftest.$ac_ext >&5
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12574 rm -rf conftest*
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12575 eval "ac_cv_header_$ac_safe=no"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12576 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12577 rm -f conftest*
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12579 echo "$ac_t""yes" 1>&6
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12581 { test "$extra_verbose" = "yes" && cat << EOF
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12582 Defining $ac_tr_hdr
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12583 EOF
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12584 cat >> confdefs.h <<EOF
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12585 #define $ac_tr_hdr 1
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12586 EOF
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12587 }
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12588
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12589 else
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12590 echo "$ac_t""no" 1>&6
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12591 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12592 done
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
12593
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12594 ;;
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12595 esac
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12596
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12597 for ac_hdr in stropts.h
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12598 do
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12601 echo "configure:12602: checking for $ac_hdr" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12602
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12603 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12604 #line 12605 "configure"
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12605 #include "confdefs.h"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12606 #include <$ac_hdr>
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12607 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12609 { (eval echo configure:12610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12611 if test -z "$ac_err"; then
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12612 rm -rf conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12613 eval "ac_cv_header_$ac_safe=yes"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12614 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12615 echo "$ac_err" >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12616 echo "configure: failed program was:" >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12617 cat conftest.$ac_ext >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12618 rm -rf conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12619 eval "ac_cv_header_$ac_safe=no"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12620 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12621 rm -f conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12623 echo "$ac_t""yes" 1>&6
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12625 { test "$extra_verbose" = "yes" && cat << EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12626 Defining $ac_tr_hdr
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12627 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12628 cat >> confdefs.h <<EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12629 #define $ac_tr_hdr 1
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12630 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12631 }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12632
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12633 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12634 echo "$ac_t""no" 1>&6
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12635 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12636 done
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
12637
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12638 if test "$ac_cv_header_stropts_h" = "yes"; then
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12639 for ac_func in isastream
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12640 do
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12642 echo "configure:12643: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12643
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12644 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12645 #line 12646 "configure"
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12646 #include "confdefs.h"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12647 /* System header to define __stub macros and hopefully few prototypes,
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12648 which can conflict with char $ac_func(); below. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12649 #include <assert.h>
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12650 /* Override any gcc2 internal prototype to avoid an error. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12651 /* We use char because int might match the return type of a gcc2
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12652 builtin and then its argument prototype would still apply. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12653 char $ac_func();
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12654
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12655 int main() {
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12656
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12657 /* The GNU C library defines this for functions which it implements
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12658 to always fail with ENOSYS. Some functions are actually named
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12659 something starting with __ and the normal name is an alias. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12661 choke me
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12662 #else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12663 $ac_func();
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12664 #endif
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12665
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12666 ; return 0; }
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12667 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12668 if { (eval echo configure:12669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12669 rm -rf conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12670 eval "ac_cv_func_$ac_func=yes"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12671 else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12672 echo "configure: failed program was:" >&5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12673 cat conftest.$ac_ext >&5
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12674 rm -rf conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12675 eval "ac_cv_func_$ac_func=no"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12676 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12677 rm -f conftest*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12678
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12680 echo "$ac_t""yes" 1>&6
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12682 { test "$extra_verbose" = "yes" && cat << EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12683 Defining $ac_tr_func
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12684 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12685 cat >> confdefs.h <<EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12686 #define $ac_tr_func 1
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12687 EOF
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12688 }
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12689
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12690 else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12691 echo "$ac_t""no" 1>&6
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12692 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12693 done
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12694
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12695 for ac_hdr in strtio.h
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12696 do
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12699 echo "configure:12700: checking for $ac_hdr" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12700
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12701 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12702 #line 12703 "configure"
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12703 #include "confdefs.h"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12704 #include <$ac_hdr>
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12705 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12707 { (eval echo configure:12708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12709 if test -z "$ac_err"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12710 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12711 eval "ac_cv_header_$ac_safe=yes"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12712 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12713 echo "$ac_err" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12714 echo "configure: failed program was:" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12715 cat conftest.$ac_ext >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12716 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12717 eval "ac_cv_header_$ac_safe=no"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12718 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12719 rm -f conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12721 echo "$ac_t""yes" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12723 { test "$extra_verbose" = "yes" && cat << EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12724 Defining $ac_tr_hdr
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12725 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12726 cat >> confdefs.h <<EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12727 #define $ac_tr_hdr 1
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12728 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12729 }
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12730
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12731 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12732 echo "$ac_t""no" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12733 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12734 done
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12735 fi
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12736
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
12737 for ac_func in getloadavg
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12738 do
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
12739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12740 echo "configure:12741: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12741
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12742 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12743 #line 12744 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12744 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12745 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12746 which can conflict with char $ac_func(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12747 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12748 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12749 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12750 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12751 char $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12752
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12753 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12754
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12755 /* The GNU C library defines this for functions which it implements
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12756 to always fail with ENOSYS. Some functions are actually named
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12757 something starting with __ and the normal name is an alias. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12759 choke me
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12760 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12761 $ac_func();
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12762 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12763
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12764 ; return 0; }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
12765 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12766 if { (eval echo configure:12767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12767 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12768 eval "ac_cv_func_$ac_func=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12769 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12770 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12771 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12772 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12773 eval "ac_cv_func_$ac_func=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12774 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12775 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12776
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12778 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12780 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12781 Defining $ac_tr_func
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12782 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12783 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12784 #define $ac_tr_func 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12785 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12786 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12787
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12788 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12789 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12790 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12791 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12792
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12793
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12794 if test "$ac_cv_func_getloadavg" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12795 for ac_hdr in sys/loadavg.h
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12796 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12797 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12798 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12799 echo "configure:12800: checking for $ac_hdr" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12800
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12801 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12802 #line 12803 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12803 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12804 #include <$ac_hdr>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12805 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12807 { (eval echo configure:12808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12809 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12810 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12811 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12812 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12813 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12814 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12815 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12816 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12817 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12818 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12819 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12821 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12822 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12823 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12824 Defining $ac_tr_hdr
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12825 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12826 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12827 #define $ac_tr_hdr 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12828 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12829 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12830
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12831 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12832 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12833 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12834 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12835
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12836 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12837 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12838 echo " xemacs will be linked with \"getloadavg.o\""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12839 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12840
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12841
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12842 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12843 echo "configure:12844: checking for kstat_open in -lkstat" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12844 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12845
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12846 xe_check_libs=" -lkstat "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12847 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12848 #line 12849 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12849 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12850 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12851 /* We use char because int might match the return type of a gcc2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12852 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12853 char kstat_open();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12854
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12855 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12856 kstat_open()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12857 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12858 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12859 if { (eval echo configure:12860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12860 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12861 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12862 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12863 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12864 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12865 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12866 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12867 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12868 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12869 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12870
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12872 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12873 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
369
1d62742628b6 Import from CVS: tag r21-1-14
cvs
parents: 367
diff changeset
12875 { test "$extra_verbose" = "yes" && cat << EOF
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12876 Defining $ac_tr_lib
369
1d62742628b6 Import from CVS: tag r21-1-14
cvs
parents: 367
diff changeset
12877 EOF
1d62742628b6 Import from CVS: tag r21-1-14
cvs
parents: 367
diff changeset
12878 cat >> confdefs.h <<EOF
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12879 #define $ac_tr_lib 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12880 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12881 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12882
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12883 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12884
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12885 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12886 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12887 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12888
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12889
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12890 for ac_hdr in kstat.h
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12891 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12894 echo "configure:12895: checking for $ac_hdr" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12895
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12896 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12897 #line 12898 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12898 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12899 #include <$ac_hdr>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12900 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12902 { (eval echo configure:12903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12904 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12905 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12906 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12907 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12908 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12909 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12910 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12911 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12912 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12913 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12914 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12916 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12918 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12919 Defining $ac_tr_hdr
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12920 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12921 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12922 #define $ac_tr_hdr 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12923 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12924 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12925
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12926 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12927 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12928 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12929 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12930
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12931
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12932
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12933 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12934 echo "configure:12935: checking for kvm_read in -lkvm" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12935 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12936
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12937 xe_check_libs=" -lkvm "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12938 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12939 #line 12940 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12940 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12941 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12942 /* We use char because int might match the return type of a gcc2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12943 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12944 char kvm_read();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12945
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12946 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12947 kvm_read()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12948 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12949 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12950 if { (eval echo configure:12951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12951 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12952 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12953 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12954 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12955 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12956 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12957 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12958 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12959 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12960 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12961
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12963 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12964 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12965 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12966 { test "$extra_verbose" = "yes" && cat << EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12967 Defining $ac_tr_lib
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12968 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12969 cat >> confdefs.h <<EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12970 #define $ac_tr_lib 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12971 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12972 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12973
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12974 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12975
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12976 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12977 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12978 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12979
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12980
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12981 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12982
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12983 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12984 echo "configure:12985: checking whether netdb declares h_errno" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12985 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12986 #line 12987 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12987 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12988 #include <netdb.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12989 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12990 return h_errno;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12991 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12992 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
12993 if { (eval echo configure:12994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12994 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12995 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12996 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12997 Defining HAVE_H_ERRNO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12998 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12999 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13000 #define HAVE_H_ERRNO 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13001 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13002 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13003
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13004 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13005 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13006 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13007 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13008 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13009 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13010 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13011
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13012 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13013 echo "configure:13014: checking for sigsetjmp" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13014 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13015 #line 13016 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13016 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13017 #include <setjmp.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13018 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13019 sigjmp_buf bar; sigsetjmp (bar, 0);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13020 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13021 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13022 if { (eval echo configure:13023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13023 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13024 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13025 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13026 Defining HAVE_SIGSETJMP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13027 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13028 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13029 #define HAVE_SIGSETJMP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13030 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13031 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13032
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13033 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13034 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13035 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13036 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13037 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13038 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13039 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13040
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13041 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13042 echo "configure:13043: checking whether localtime caches TZ" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13043
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13044 if test "$ac_cv_func_tzset" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13045 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13046 #line 13047 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13047 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13048 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13049 #if STDC_HEADERS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13050 # include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13051 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13052 extern char **environ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13053 unset_TZ ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13054 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13055 char **from, **to;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13056 for (to = from = environ; (*to = *from); from++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13057 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13058 to++;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13059 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13060 char TZ_GMT0[] = "TZ=GMT0";
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13061 char TZ_PST8[] = "TZ=PST8";
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13062 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13063 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13064 time_t now = time ((time_t *) 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13065 int hour_GMT0, hour_unset;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13066 if (putenv (TZ_GMT0) != 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13067 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13068 hour_GMT0 = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13069 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13070 hour_unset = localtime (&now)->tm_hour;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13071 if (putenv (TZ_PST8) != 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13072 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13073 if (localtime (&now)->tm_hour == hour_GMT0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13074 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13075 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13076 if (localtime (&now)->tm_hour != hour_unset)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13077 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13078 exit (0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13079 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13080 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13081 if { (eval echo configure:13082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13082 then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13083 emacs_cv_localtime_cache=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13084 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
13085 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13086 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13087 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13088 rm -fr conftest*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13089 emacs_cv_localtime_cache=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13090 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13091 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13092 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13093 # If we lack tzset, report that localtime does not cache TZ,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13094 # since we can't invalidate the cache if we don't have tzset.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13095 emacs_cv_localtime_cache=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13096 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13097 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13098 if test $emacs_cv_localtime_cache = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13099 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13100 Defining LOCALTIME_CACHE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13101 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13102 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13103 #define LOCALTIME_CACHE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13104 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13105 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13106
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13107 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13108
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13109 if test "$HAVE_TIMEVAL" = "yes"; then
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13110 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13111 echo "configure:13112: checking whether gettimeofday accepts one or two arguments" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13112 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13113 #line 13114 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13114 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13115
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13116 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13117 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13118 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13119 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13120 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13121 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13122 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13123 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13124 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13125 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13126
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13127 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13128
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13129 struct timeval time;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13130 gettimeofday (&time, 0);
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13131
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13132 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13133 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13134 if { (eval echo configure:13135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13135 rm -rf conftest*
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13136 echo "$ac_t""two" 1>&6
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13137 else
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13138 echo "configure: failed program was:" >&5
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13139 cat conftest.$ac_ext >&5
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13140 rm -rf conftest*
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13141 echo "$ac_t""one" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13142 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13143 Defining GETTIMEOFDAY_ONE_ARGUMENT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13144 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13145 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13146 #define GETTIMEOFDAY_ONE_ARGUMENT 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13147 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13148 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13150 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13151 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13152 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13153
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13154
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13155 echo $ac_n "checking for inline""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13156 echo "configure:13157: checking for inline" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13157
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13158 ac_cv_c_inline=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13159 for ac_kw in inline __inline__ __inline; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13160 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13161 #line 13162 "configure"
744
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
13162 #include "confdefs.h"
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
13163
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
13164 int main() {
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
13165 } $ac_kw foo() {
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
13166 ; return 0; }
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
13167 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13168 if { (eval echo configure:13169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13169 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13170 ac_cv_c_inline=$ac_kw; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13171 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13172 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13173 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13174 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13175 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13176 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13177
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13178
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13179 echo "$ac_t""$ac_cv_c_inline" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13180 case "$ac_cv_c_inline" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13181 inline | yes) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13182 no) { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13183 Defining inline =
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13184 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13185 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13186 #define inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13187 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13188 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13189 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13190 *) { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13191 Defining inline = $ac_cv_c_inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13192 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13193 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13194 #define inline $ac_cv_c_inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13195 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13196 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13197 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13198 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13199
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13200 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13201 echo " xemacs will be linked with \"inline.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13202 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13203
1800
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13204 echo $ac_n "checking for typeof""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13205 echo "configure:13206: checking for typeof" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13206 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13207 #line 13208 "configure"
1800
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13208 #include "confdefs.h"
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13209
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13210 int main() {
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13211 int i; __typeof__(i) j;
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13212 ; return 0; }
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13213 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13214 if { (eval echo configure:13215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1800
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13215 rm -rf conftest*
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13216 typeofname="__typeof__"
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13217 else
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13218 echo "configure: failed program was:" >&5
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13219 cat conftest.$ac_ext >&5
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13220 rm -rf conftest*
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13221 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13222 #line 13223 "configure"
1800
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13223 #include "confdefs.h"
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13224
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13225 int main() {
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13226 int i; typeof(i) j;
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13227 ; return 0; }
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13228 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13229 if { (eval echo configure:13230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1800
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13230 rm -rf conftest*
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13231 typeofname="typeof"
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13232 else
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13233 echo "configure: failed program was:" >&5
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13234 cat conftest.$ac_ext >&5
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13235 rm -rf conftest*
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13236 typeofname=no
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13237 fi
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13238 rm -f conftest*
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13239 fi
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13240 rm -f conftest*
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13241 echo "$ac_t""$typeofname" 1>&6
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13242 if test "$typeofname" != "no"; then
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13243 { test "$extra_verbose" = "yes" && cat << EOF
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13244 Defining TYPEOF = $typeofname
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13245 EOF
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13246 cat >> confdefs.h <<EOF
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13247 #define TYPEOF $typeofname
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13248 EOF
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13249 }
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13250
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13251 fi
6c853dd06f0d [xemacs-hg @ 2003-11-20 16:06:00 by james]
james
parents: 1756
diff changeset
13252
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13253
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
13254 if test "$__DECC" != "yes"; then
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
13255 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13256 # for constant arguments. Useless!
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13257 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13258 echo "configure:13259: checking for working alloca.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13259
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13260 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13261 #line 13262 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13262 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13263 #include <alloca.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13264 int main() {
744
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
13265 char *p = alloca(2 * sizeof(int));
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
13266 ; return 0; }
8ae895c67ce7 [xemacs-hg @ 2002-02-04 15:44:37 by wmperry]
wmperry
parents: 726
diff changeset
13267 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13268 if { (eval echo configure:13269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13269 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13270 ac_cv_header_alloca_h=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13271 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13272 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13273 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13274 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13275 ac_cv_header_alloca_h=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13276 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13277 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13278
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13279 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13280 if test $ac_cv_header_alloca_h = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13281 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13282 Defining HAVE_ALLOCA_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13283 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13284 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13285 #define HAVE_ALLOCA_H 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13286 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13287 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13288
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13289 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13290
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13291 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13292 echo "configure:13293: checking for alloca" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13293
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13294 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13295 #line 13296 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13296 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13297
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13298 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13299 # define alloca __builtin_alloca
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13300 #else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13301 # ifdef _MSC_VER
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13302 # include <malloc.h>
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13303 # define alloca _alloca
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13304 # else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13305 # if HAVE_ALLOCA_H
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13306 # include <alloca.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13307 # else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13308 # ifdef _AIX
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13309 #pragma alloca
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13310 # else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13311 # ifndef alloca /* predefined by HP cc +Olibcalls */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13312 char *alloca ();
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13313 # endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13314 # endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13315 # endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13316 # endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13317 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13318
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13319 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13320 char *p = (char *) alloca(1);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13321 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13322 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13323 if { (eval echo configure:13324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13324 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13325 ac_cv_func_alloca_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13326 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13327 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13328 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13329 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13330 ac_cv_func_alloca_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13331 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13332 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13333
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13334 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13335 if test $ac_cv_func_alloca_works = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13336 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13337 Defining HAVE_ALLOCA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13338 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13339 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13340 #define HAVE_ALLOCA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13341 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13342 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13343
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13344 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13345
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13346 if test $ac_cv_func_alloca_works = no; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13347 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13348 # that cause trouble. Some versions do not even contain alloca or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13349 # contain a buggy version. If you still want to use their alloca,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13350 # use ar to extract alloca.o from them instead of compiling alloca.c.
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13351 ALLOCA=alloca.${ac_objext}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13352 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13353 Defining C_ALLOCA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13354 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13355 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13356 #define C_ALLOCA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13357 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13358 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13359
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13360
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13361 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13362 echo "configure:13363: checking whether alloca needs Cray hooks" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13363
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13364 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13365 #line 13366 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13366 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13367 #if defined(CRAY) && ! defined(CRAY2)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13368 webecray
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13369 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13370 wenotbecray
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13371 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13372
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13373 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13375 egrep "webecray" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13376 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13377 ac_cv_os_cray=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13378 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13379 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13380 ac_cv_os_cray=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13381 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13382 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13383
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13384
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13385 echo "$ac_t""$ac_cv_os_cray" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13386 if test $ac_cv_os_cray = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13387 for ac_func in _getb67 GETB67 getb67; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13389 echo "configure:13390: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13390
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13391 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13392 #line 13393 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13393 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13394 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13395 which can conflict with char $ac_func(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13396 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13397 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13398 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13399 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13400 char $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13401
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13402 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13403
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13404 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13405 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13406 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13408 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13409 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13410 $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13411 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13412
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13413 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13414 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13415 if { (eval echo configure:13416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13416 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13417 eval "ac_cv_func_$ac_func=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13418 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13419 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13420 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13421 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13422 eval "ac_cv_func_$ac_func=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13423 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13424 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13425
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13427 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13428 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13429 Defining CRAY_STACKSEG_END = $ac_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13430 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13431 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13432 #define CRAY_STACKSEG_END $ac_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13433 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13434 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13435
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13436 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13437 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13438 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13439 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13440
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13441 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13442 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13443
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13444 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13445 echo "configure:13446: checking stack direction for C alloca" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13446
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13447 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13448 #line 13449 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13449 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13450 find_stack_direction ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13451 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13452 static char *addr = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13453 auto char dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13454 if (addr == 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13455 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13456 addr = &dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13457 return find_stack_direction ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13458 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13459 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13460 return (&dummy > addr) ? 1 : -1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13461 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13462 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13463 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13464 exit (find_stack_direction() < 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13465 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13466 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13467 if { (eval echo configure:13468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13468 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13469 ac_cv_c_stack_direction=1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13470 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
13471 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13472 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13473 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13474 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13475 ac_cv_c_stack_direction=-1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13476 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13477 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13478
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13479 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13480 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13481 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13482 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13483 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13484 #define STACK_DIRECTION $ac_cv_c_stack_direction
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13485 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13486 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13487
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13488 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13489
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
13490 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13491 echo " xemacs will be linked with \"$ALLOCA\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13492 fi
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
13493 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13494
1332
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13495 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13496 echo "configure:13497: checking for working alloca in function calls" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13497 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13498 #line 13499 "configure"
1332
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13499 #include "confdefs.h"
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13500
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13501 #if defined (__CYGWIN__)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13502 #include <alloca.h>
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13503 #elif defined (__GNUC__)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13504 #define alloca __builtin_alloca
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13505 #elif defined (__DECC)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13506 #include <alloca.h>
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13507 #pragma intrinsic(alloca)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13508 #elif defined (HAVE_ALLOCA_H)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13509 #include <alloca.h>
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13510 #elif defined (_AIX)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13511 #pragma alloca
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13512 #elif ! defined (alloca)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13513 #ifdef C_ALLOCA
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13514 #define alloca xemacs_c_alloca
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13515 #else
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13516 void *alloca ();
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13517 #endif /* C_ALLOCA */
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13518 #endif /* !defined (alloca) */
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13519
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13520 void
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13521 f1 (double a, void *ptr, int b)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13522 {
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13523 unsigned char *ptr2 = (unsigned char *) ptr;
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13524 if (ptr2[0] != 0xBF || ptr2[1] != 0xBF || ptr2[3000] != 0xBF)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13525 exit (1);
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13526 if (a != 3.1415 || b != -5490)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13527 exit (1);
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13528 }
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13529
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13530 int
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13531 f2 (short c, void *ptr, long e)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13532 {
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13533 unsigned char *ptr2 = (unsigned char *) ptr;
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13534 if (ptr2[0] != 0xFB || ptr2[1] != 0xFB || ptr2[1000] != 0xFB)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13535 exit (1);
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13536 if (c != 665 || e != 776776776)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13537 exit (1);
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13538 f1 (3.1415, memset (alloca (3001), 0xBF, 3001), -5490);
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13539 return 42;
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13540 }
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13541
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13542 int
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13543 main (int argc, char *argv[])
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13544 {
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13545 if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42)
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13546 return 1;
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13547 return 0;
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13548 }
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13549
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13550 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13551 if { (eval echo configure:13552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
1332
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13552 then
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13553 working_alloca_in_function_calls=yes
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13554 else
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13555 conftest_rc="$?"
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13556 echo "configure: failed program was:" >&5
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13557 cat conftest.$ac_ext >&5
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13558 rm -fr conftest*
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13559 working_alloca_in_function_calls=no
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13560 fi
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13561 rm -fr conftest*
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13562 echo "$ac_t""$working_alloca_in_function_calls" 1>&6
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13563 test "$working_alloca_in_function_calls" != "yes" && \
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13564 { test "$extra_verbose" = "yes" && cat << \EOF
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13565 Defining BROKEN_ALLOCA_IN_FUNCTION_CALLS
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13566 EOF
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13567 cat >> confdefs.h <<\EOF
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13568 #define BROKEN_ALLOCA_IN_FUNCTION_CALLS 1
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13569 EOF
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13570 }
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13571
6aa23bb3da6b [xemacs-hg @ 2003-03-02 02:18:05 by ben]
ben
parents: 1300
diff changeset
13572
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13573 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13574 echo "configure:13575: checking for working strcoll" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13575
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13576 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13577 #line 13578 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13578 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13579 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13580 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13581 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13582 exit (strcoll ("abc", "def") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13583 strcoll ("ABC", "DEF") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13584 strcoll ("123", "456") >= 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13585 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13586 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13587 if { (eval echo configure:13588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13588 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13589 ac_cv_func_strcoll_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13590 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
13591 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13592 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13593 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13594 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13595 ac_cv_func_strcoll_works=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13596 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13597 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13598
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13599 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13600 if test $ac_cv_func_strcoll_works = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13601 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13602 Defining HAVE_STRCOLL
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13603 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13604 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13605 #define HAVE_STRCOLL 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13606 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13607 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13608
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13609 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13610
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13611
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13612 for ac_func in getpgrp
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13613 do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13615 echo "configure:13616: checking for $ac_func" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13616
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13617 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13618 #line 13619 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13619 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13620 /* System header to define __stub macros and hopefully few prototypes,
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13621 which can conflict with char $ac_func(); below. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13622 #include <assert.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13623 /* Override any gcc2 internal prototype to avoid an error. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13624 /* We use char because int might match the return type of a gcc2
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13625 builtin and then its argument prototype would still apply. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13626 char $ac_func();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13627
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13628 int main() {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13629
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13630 /* The GNU C library defines this for functions which it implements
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13631 to always fail with ENOSYS. Some functions are actually named
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13632 something starting with __ and the normal name is an alias. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13634 choke me
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13635 #else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13636 $ac_func();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13637 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13638
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13639 ; return 0; }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13640 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13641 if { (eval echo configure:13642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13642 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13643 eval "ac_cv_func_$ac_func=yes"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13644 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13645 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13646 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13647 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13648 eval "ac_cv_func_$ac_func=no"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13649 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13650 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13651
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13653 echo "$ac_t""yes" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13655 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13656 Defining $ac_tr_func
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13657 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13658 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13659 #define $ac_tr_func 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13660 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13661 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13662
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13663 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13664 echo "$ac_t""no" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13665 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13666 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13667
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13668 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13669 echo "configure:13670: checking whether getpgrp takes no argument" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13670
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13671 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13672 #line 13673 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13673 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13674
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13675 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13676 * If this system has a BSD-style getpgrp(),
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13677 * which takes a pid argument, exit unsuccessfully.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13678 *
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13679 * Snarfed from Chet Ramey's bash pgrp.c test program
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13680 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13681 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13682 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13683
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13684 int pid;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13685 int pg1, pg2, pg3, pg4;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13686 int ng, np, s, child;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13687
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13688 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13689 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13690 pid = getpid();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13691 pg1 = getpgrp(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13692 pg2 = getpgrp();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13693 pg3 = getpgrp(pid);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13694 pg4 = getpgrp(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13695
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13696 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13697 * If all of these values are the same, it's pretty sure that
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13698 * we're on a system that ignores getpgrp's first argument.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13699 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13700 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13701 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13702
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13703 child = fork();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13704 if (child < 0)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13705 exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13706 else if (child == 0) {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13707 np = getpid();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13708 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13709 * If this is Sys V, this will not work; pgrp will be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13710 * set to np because setpgrp just changes a pgrp to be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13711 * the same as the pid.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13712 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13713 setpgrp(np, pg1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13714 ng = getpgrp(0); /* Same result for Sys V and BSD */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13715 if (ng == pg1) {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13716 exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13717 } else {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13718 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13719 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13720 } else {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13721 wait(&s);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13722 exit(s>>8);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13723 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13724 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13725
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13726 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13727 if { (eval echo configure:13728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13728 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13729 ac_cv_func_getpgrp_void=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13730 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
13731 conftest_rc="$?"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13732 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13733 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13734 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13735 ac_cv_func_getpgrp_void=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13736 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13737 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13738
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13739
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13740 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13741 if test $ac_cv_func_getpgrp_void = yes; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13742 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13743 Defining GETPGRP_VOID
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13744 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13745 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13746 #define GETPGRP_VOID 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13747 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13748 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13749
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13750 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13751
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13752
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13753 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13754 echo "configure:13755: checking for working mmap" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13755 case "$opsys" in ultrix* ) have_mmap=no ;; *)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13756 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13757 #line 13758 "configure"
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13758 #include "confdefs.h"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13759 #include <stdio.h>
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13760 #include <unistd.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13761 #include <fcntl.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13762 #include <sys/mman.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13763
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13764 #ifndef MAP_VARIABLE
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13765 #define MAP_VARIABLE 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13766 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13767
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13768 #ifndef MAP_FAILED
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13769 #define MAP_FAILED -1
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13770 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13771
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13772 int main (int argc, char *argv[])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13773 {
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13774 int fd = -1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13775 caddr_t p;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13776 #ifndef MAP_ANONYMOUS
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13777 fd = open ("/dev/zero", O_RDWR);
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13778 if (fd < 0)
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13779 return 1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13780 #define MAP_ANONYMOUS 0
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13781 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13782 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13783 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13784 fd, 0) != (void *) MAP_FAILED)
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13785 return 0;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13786 perror ("conftest: mmap failed");
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13787 return 1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13788 }
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13789 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13790 if { (eval echo configure:13791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13791 then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13792 have_mmap=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13793 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
13794 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13795 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13796 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13797 rm -fr conftest*
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13798 have_mmap=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13799 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13800 rm -fr conftest* ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13801 esac
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13802 echo "$ac_t""$have_mmap" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13803 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13804 Defining HAVE_MMAP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13805 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13806 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13807 #define HAVE_MMAP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13808 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13809 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13810
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 410
diff changeset
13811
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
13812 case "$opsys" in cygwin*)
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
13813 test "$rel_alloc" = "default" && rel_alloc=no ;;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
13814 esac
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13815 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13816 if test "$rel_alloc $have_mmap" = "default yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13817 if test "$doug_lea_malloc" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13818 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13819 echo "configure:13820: checking for M_MMAP_THRESHOLD" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13820 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13821 #line 13822 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13822 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13823 #include <malloc.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13824 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13825
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13826 #ifndef M_MMAP_THRESHOLD
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13827 #error No M_MMAP_THRESHOLD :-(
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13828 !@+$%^&*_)(_ - unlikely to compile...
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13829 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13830
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13831 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13832 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13833 if { (eval echo configure:13834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13834 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13835 rel_alloc=no; echo "$ac_t""yes" 1>&6;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13836 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13837 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13838 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13839 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13840 rel_alloc=yes; echo "$ac_t""no" 1>&6;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13841 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13842 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13843 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13844 rel_alloc=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13845 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13846 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13847 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13848 Defining REL_ALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13849 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13850 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13851 #define REL_ALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13852 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13853 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13854
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13855
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13856 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13857 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13858 echo "configure:13859: checking for termios.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13859
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13860 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13861 #line 13862 "configure"
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13862 #include "confdefs.h"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13863 #include <termios.h>
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13864 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13866 { (eval echo configure:13867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13868 if test -z "$ac_err"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13869 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13870 eval "ac_cv_header_$ac_safe=yes"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13871 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13872 echo "$ac_err" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13873 echo "configure: failed program was:" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13874 cat conftest.$ac_ext >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13875 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13876 eval "ac_cv_header_$ac_safe=no"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13877 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13878 rm -f conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13880 echo "$ac_t""yes" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13881 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13882 Defining HAVE_TERMIOS
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13883 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13884 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13885 #define HAVE_TERMIOS 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13886 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13887 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13888
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13889 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13890 Defining SIGNALS_VIA_CHARACTERS
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13891 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13892 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13893 #define SIGNALS_VIA_CHARACTERS 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13894 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13895 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13896
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13897 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13898 Defining NO_TERMIO
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13899 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13900 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13901 #define NO_TERMIO 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13902 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13903 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13904
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13905 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13906 echo "$ac_t""no" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13907 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13908 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13909 echo "configure:13910: checking for termio.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13910
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13911 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13912 #line 13913 "configure"
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13913 #include "confdefs.h"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13914 #include <termio.h>
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13915 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13917 { (eval echo configure:13918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13919 if test -z "$ac_err"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13920 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13921 eval "ac_cv_header_$ac_safe=yes"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13922 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13923 echo "$ac_err" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13924 echo "configure: failed program was:" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13925 cat conftest.$ac_ext >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13926 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13927 eval "ac_cv_header_$ac_safe=no"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13928 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13929 rm -f conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13931 echo "$ac_t""yes" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13932 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13933 Defining HAVE_TERMIO
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13934 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13935 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13936 #define HAVE_TERMIO 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13937 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13938 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13939
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13940 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13941 echo "$ac_t""no" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13942 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13943
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13944 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13945
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13946
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13947
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13948 echo $ac_n "checking for socket""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13949 echo "configure:13950: checking for socket" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13950
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13951 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13952 #line 13953 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13953 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13954 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13955 which can conflict with char socket(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13956 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13957 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13958 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13959 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13960 char socket();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13961
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13962 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13963
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13964 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13965 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13966 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13967 #if defined (__stub_socket) || defined (__stub___socket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13968 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13969 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13970 socket();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13971 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13972
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13973 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13974 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13975 if { (eval echo configure:13976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13976 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13977 eval "ac_cv_func_socket=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13978 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13979 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13980 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13981 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13982 eval "ac_cv_func_socket=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13983 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13984 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13985
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13986 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13987 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13988 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13989 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13990 echo "configure:13991: checking for netinet/in.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13991
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13992 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13993 #line 13994 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13994 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13995 #include <netinet/in.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13996 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
13998 { (eval echo configure:13999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14000 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14001 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14002 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14003 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14004 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14005 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14006 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14007 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14008 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14009 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14010 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14012 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14013 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14014 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14015 echo "configure:14016: checking for arpa/inet.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14016
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14017 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14018 #line 14019 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14019 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14020 #include <arpa/inet.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14021 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14023 { (eval echo configure:14024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14025 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14026 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14027 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14028 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14029 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14030 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14031 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14032 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14033 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14034 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14035 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14037 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14038
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14039 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14040 Defining HAVE_SOCKETS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14041 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14042 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14043 #define HAVE_SOCKETS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14044 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14045 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14046
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14047 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14048 echo "configure:14049: checking "for sun_len member in struct sockaddr_un"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14049 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14050 #line 14051 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14051 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14052
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14053 #include <sys/types.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14054 #include <sys/socket.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14055 #include <sys/un.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14056
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14057 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14058 static struct sockaddr_un x; x.sun_len = 1;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14059 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14060 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14061 if { (eval echo configure:14062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14062 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14063 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14064 Defining HAVE_SOCKADDR_SUN_LEN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14065 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14066 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14067 #define HAVE_SOCKADDR_SUN_LEN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14068 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14069 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14070
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14071 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14072 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14073 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14074 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14075 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14076 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14077 rm -f conftest*
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14078 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14079 echo "configure:14080: checking "for ip_mreq struct in netinet/in.h"" >&5
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14080 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14081 #line 14082 "configure"
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
14082 #include "confdefs.h"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
14083
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
14084 #include <sys/types.h>
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14085 #include <netinet/in.h>
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14086
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14087 int main() {
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14088 static struct ip_mreq x;
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14089 ; return 0; }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14090 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14091 if { (eval echo configure:14092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14092 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14093 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14094 Defining HAVE_MULTICAST
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14095 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14096 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14097 #define HAVE_MULTICAST 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14098 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14099 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14100
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14101 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14102 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14103 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14104 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14105 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14106 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14107 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14108 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14109 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14110 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14111
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14112 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14113 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14114 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14115
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14116 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14117 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14118 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14119
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14120
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14121 echo $ac_n "checking for msgget""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14122 echo "configure:14123: checking for msgget" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14123
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14124 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14125 #line 14126 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14126 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14127 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14128 which can conflict with char msgget(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14129 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14130 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14131 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14132 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14133 char msgget();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14134
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14135 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14136
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14137 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14138 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14139 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14140 #if defined (__stub_msgget) || defined (__stub___msgget)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14141 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14142 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14143 msgget();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14144 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14145
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14146 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14147 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14148 if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14149 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14150 eval "ac_cv_func_msgget=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14151 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14152 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14153 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14154 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14155 eval "ac_cv_func_msgget=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14156 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14157 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14158
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14159 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14160 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14161 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14162 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14163 echo "configure:14164: checking for sys/ipc.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14164
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14165 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14166 #line 14167 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14167 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14168 #include <sys/ipc.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14169 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14171 { (eval echo configure:14172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14173 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14174 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14175 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14176 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14177 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14178 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14179 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14180 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14181 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14182 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14183 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14185 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14186 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14187 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14188 echo "configure:14189: checking for sys/msg.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14189
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14190 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14191 #line 14192 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14192 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14193 #include <sys/msg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14194 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14196 { (eval echo configure:14197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14198 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14199 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14200 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14201 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14202 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14203 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14204 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14205 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14206 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14207 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14208 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14210 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14211 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14212 Defining HAVE_SYSVIPC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14213 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14214 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14215 #define HAVE_SYSVIPC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14216 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14217 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14218
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14219 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14220 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14221 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14222
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14223 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14224 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14225 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14226
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14227 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14228 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14229 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14230
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14231
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14232 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14233 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14234 echo "configure:14235: checking for dirent.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14235
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14236 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14237 #line 14238 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14238 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14239 #include <dirent.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14240 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14242 { (eval echo configure:14243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14244 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14245 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14246 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14247 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14248 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14249 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14250 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14251 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14252 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14253 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14254 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14256 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14257 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14258 Defining SYSV_SYSTEM_DIR
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14259 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14260 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14261 #define SYSV_SYSTEM_DIR 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14262 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14263 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14264
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14265 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14266 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14267 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14268 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14269 echo "configure:14270: checking for sys/dir.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14270
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14271 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14272 #line 14273 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14273 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14274 #include <sys/dir.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14275 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14277 { (eval echo configure:14278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14279 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14280 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14281 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14282 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14283 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14284 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14285 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14286 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14287 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14288 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14289 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14291 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14292 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14293 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14294 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14295 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14296 Defining NONSYSTEM_DIR_LIBRARY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14297 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14298 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14299 #define NONSYSTEM_DIR_LIBRARY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14300 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14301 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14302
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14303 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14304
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14305 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14306
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14307
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14308 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14309 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14310 echo "configure:14311: checking for nlist.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14311
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14312 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14313 #line 14314 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14314 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14315 #include <nlist.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14316 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14318 { (eval echo configure:14319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14320 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14321 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14322 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14323 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14324 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14325 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14326 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14327 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14328 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14329 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14330 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14332 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14333 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14334 Defining NLIST_STRUCT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14335 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14336 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14337 #define NLIST_STRUCT 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14338 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14339 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14340
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14341 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14342 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14343 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14344
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14345
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14346
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14347 echo "checking "for sound support"" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14348 echo "configure:14349: checking "for sound support"" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14349 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14350
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14351 if test "$with_native_sound" != "no"; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14352 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14353 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14354 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14355 echo "configure:14356: checking for multimedia/audio_device.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14356
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14357 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14358 #line 14359 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14359 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14360 #include <multimedia/audio_device.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14361 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14363 { (eval echo configure:14364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14365 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14366 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14367 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14368 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14369 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14370 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14371 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14372 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14373 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14374 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14375 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14377 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14378 sound_found=yes sound_cflags=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14379 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14380 echo " xemacs will be linked with \"sunplay.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14381 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14382 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14383 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14384 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14385
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14386 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14387
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14388 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
1696
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14389 if test -d "/usr/demo/SOUND/include/multimedia"; then
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14390 sun_sound_cflags="-I/usr/demo/SOUND/include"
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14391 elif test -d "/usr/demo/SOUND/multimedia"; then
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14392 sun_sound_cflags="-I/usr/demo/SOUND"
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14393 fi
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14394
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14395 if test -n "$native_sound_lib"; then
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14396 sun_sound_lib="$native_sound_lib"
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14397 elif test -r "/usr/demo/SOUND/lib/libaudio.a"; then
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14398 sun_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14399 elif test -r "/usr/demo/SOUND/libaudio.a"; then
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14400 sun_sound_lib="/usr/demo/SOUND/libaudio.a"
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14401 fi
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14402
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14403 if test -n "$sun_sound_cflags" -a -n "$sun_sound_lib"; then
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14404 native_sound_lib="$sun_sound_lib"
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14405 sound_cflags="$sun_sound_cflags"
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14406 sound_found=yes
7032283c28db [xemacs-hg @ 2003-09-19 15:56:52 by youngs]
youngs
parents: 1692
diff changeset
14407 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14408 echo " xemacs will be linked with \"sunplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14409 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14410 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14411 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14412
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14413 if test -z "$sound_found"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14414 case "$canonical" in
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14415 *-sgi-* )
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14416 if test -z "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14417
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14418 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14419 echo "configure:14420: checking for ALopenport in -laudio" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14420 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14421
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14422 xe_check_libs=" -laudio "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14423 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14424 #line 14425 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14425 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14426 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14427 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14428 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14429 char ALopenport();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14430
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14431 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14432 ALopenport()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14433 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14434 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14435 if { (eval echo configure:14436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14436 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14437 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14438 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14439 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14440 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14441 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14442 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14443 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14444 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14445 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14446
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14448 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14449 native_sound_lib="-laudio"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14450 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14451 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14452 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14453
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14454
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14455 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14456 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14457 sound_found=yes sound_cflags=""
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14458 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14459 echo " xemacs will be linked with \"sgiplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14460 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14461 fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14462 hppa*-hp-hpux* )
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14463 if test -z "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14464
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14465 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14466 echo "configure:14467: checking for AOpenAudio in -lAlib" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14467 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14468
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14469 xe_check_libs=" -lAlib "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14470 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14471 #line 14472 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14472 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14473 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14474 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14475 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14476 char AOpenAudio();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14477
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14478 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14479 AOpenAudio()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14480 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14481 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14482 if { (eval echo configure:14483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14483 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14484 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14485 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14486 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14487 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14488 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14489 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14490 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14491 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14492 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14493
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14495 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14496 native_sound_lib="-lAlib"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14497 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14498 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14499 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14500
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14501
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14502 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14503 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14504 sound_found=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14505 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14506 echo " xemacs will be linked with \"hpplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14507 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
14508 if test "$GCC" = "yes" # Kludge city
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14509 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14510 else sound_cflags="+e -I/usr/audio/examples"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14511 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14512 fi ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14513 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14514 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14515
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14516 if test -z "$sound_found"; then
553
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
14517 if test "$with_msw" = "yes"; then
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14518 sound_found=yes
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14519 native_sound_lib=
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14520 extra_objs="$extra_objs ntplay.o" && if test "$extra_verbose" = "yes"; then
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14521 echo " xemacs will be linked with \"ntplay.o\""
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14522 fi
553
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
14523 fi
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
14524 fi
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
14525
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
14526 if test -z "$sound_found"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14527 for dir in "machine" "sys" "linux"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14528 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14529 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14530 echo "configure:14531: checking for ${dir}/soundcard.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14531
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14532 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14533 #line 14534 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14534 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14535 #include <${dir}/soundcard.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14536 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14538 { (eval echo configure:14539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14540 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14541 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14542 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14543 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14544 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14545 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14546 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14547 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14548 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14549 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14550 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14552 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14553 sound_found=yes
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14554 need_miscplay=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14555 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14556 echo " xemacs will be linked with \"linuxplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14557 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14558 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14559 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14560 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14561 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14562 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14563 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14564 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14565
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14566 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14567 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14568 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14569 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14570
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14571 done
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
14572 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14573
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14574 test "$sound_found" = "yes" && with_native_sound=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14575 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14576
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14577 if test "$with_native_sound" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14578 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14579 Defining HAVE_NATIVE_SOUND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14580 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14581 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14582 #define HAVE_NATIVE_SOUND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14583 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14584 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14585
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14586 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14587 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14588
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14589 if test "$with_nas_sound" != "no"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14590 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14591 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14592 echo "configure:14593: checking for audio/audiolib.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14593
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14594 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14595 #line 14596 "configure"
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14596 #include "confdefs.h"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14597 #include <audio/audiolib.h>
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14598 EOF
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14600 { (eval echo configure:14601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14602 if test -z "$ac_err"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14603 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14604 eval "ac_cv_header_$ac_safe=yes"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14605 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14606 echo "$ac_err" >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14607 echo "configure: failed program was:" >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14608 cat conftest.$ac_ext >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14609 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14610 eval "ac_cv_header_$ac_safe=no"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14611 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14612 rm -f conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14614 echo "$ac_t""yes" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14615
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14616
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14617 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14618 echo "configure:14619: checking for AuOpenServer in -laudio" >&5
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14619 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14620
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14621 xe_check_libs=" -laudio "
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14622 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14623 #line 14624 "configure"
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14624 #include "confdefs.h"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14625 /* Override any gcc2 internal prototype to avoid an error. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14626 /* We use char because int might match the return type of a gcc2
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14627 builtin and then its argument prototype would still apply. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14628 char AuOpenServer();
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14629
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14630 int main() {
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14631 AuOpenServer()
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14632 ; return 0; }
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14633 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14634 if { (eval echo configure:14635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14635 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14636 eval "ac_cv_lib_$ac_lib_var=yes"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14637 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14638 echo "configure: failed program was:" >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14639 cat conftest.$ac_ext >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14640 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14641 eval "ac_cv_lib_$ac_lib_var=no"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14642 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14643 rm -f conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14644 xe_check_libs=""
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14645
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14647 echo "$ac_t""yes" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14648 have_nas_sound=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14649 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14650 echo "$ac_t""no" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14651 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14652
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14653
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14654 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14655 echo "$ac_t""no" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14656 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14657
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14658 if test "$have_nas_sound" = "yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14659 with_nas_sound=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14660 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14661 Defining HAVE_NAS_SOUND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14662 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14663 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14664 #define HAVE_NAS_SOUND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14665 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14666 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14667
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14668 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14669 echo " xemacs will be linked with \"nas.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14670 fi
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14671 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14672 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14673 #line 14674 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14674 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14675 #include <audio/Xtutil.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14676 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14678 egrep "AuXtErrorJump" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14679 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14680 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14681 rm -rf conftest*
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14682 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14683 Defining NAS_NO_ERROR_JUMP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14684 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14685 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14686 #define NAS_NO_ERROR_JUMP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14687 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14688 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14689
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14690 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14691 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14692
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14693 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14694 test "$with_nas_sound" = "yes" && \
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14695 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14696 with_nas_sound=no
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14697 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14698 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14699
1464
b02bdcffb55f [xemacs-hg @ 2003-05-08 16:06:15 by stephent]
stephent
parents: 1462
diff changeset
14700 if test "$with_esd_sound" != "no"; then
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14701 # Extract the first word of "esd-config", so it can be a program name with args.
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14702 set dummy esd-config; ac_word=$2
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14704 echo "configure:14705: checking for $ac_word" >&5
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14705
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14706 if test -n "$have_esd_config"; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14707 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14708 else
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14710 ac_dummy="$PATH"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14711 for ac_dir in $ac_dummy; do
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14712 test -z "$ac_dir" && ac_dir=.
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14713 if test -f $ac_dir/$ac_word; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14714 ac_cv_prog_have_esd_config="yes"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14715 break
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14716 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14717 done
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14718 IFS="$ac_save_ifs"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14719 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14720 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14721 have_esd_config="$ac_cv_prog_have_esd_config"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14722 if test -n "$have_esd_config"; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14723 echo "$ac_t""$have_esd_config" 1>&6
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14724 else
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14725 echo "$ac_t""no" 1>&6
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14726 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14727
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14728 if test "$have_esd_config" = "yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14729 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14730 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14731 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14732 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14733 echo "configure:14734: checking for esd_play_stream" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14734
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14735 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14736 #line 14737 "configure"
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14737 #include "confdefs.h"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14738 /* System header to define __stub macros and hopefully few prototypes,
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14739 which can conflict with char esd_play_stream(); below. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14740 #include <assert.h>
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14741 /* Override any gcc2 internal prototype to avoid an error. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14742 /* We use char because int might match the return type of a gcc2
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14743 builtin and then its argument prototype would still apply. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14744 char esd_play_stream();
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14745
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14746 int main() {
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14747
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14748 /* The GNU C library defines this for functions which it implements
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14749 to always fail with ENOSYS. Some functions are actually named
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14750 something starting with __ and the normal name is an alias. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14751 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14752 choke me
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14753 #else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14754 esd_play_stream();
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14755 #endif
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14756
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14757 ; return 0; }
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14758 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14759 if { (eval echo configure:14760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14760 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14761 eval "ac_cv_func_esd_play_stream=yes"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14762 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14763 echo "configure: failed program was:" >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14764 cat conftest.$ac_ext >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14765 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14766 eval "ac_cv_func_esd_play_stream=no"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14767 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14768 rm -f conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14769
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14770 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14771 echo "$ac_t""yes" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14772 have_esd_sound=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14773 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14774 echo "$ac_t""no" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14775 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14776 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14777
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14778 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14779
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14780 if test "$have_esd_sound" = "yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14781 with_esd_sound=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14782 need_miscplay=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14783 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14784 echo " xemacs will be linked with \"esd.o\""
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14785 fi
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14786 { test "$extra_verbose" = "yes" && cat << \EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14787 Defining HAVE_ESD_SOUND
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14788 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14789 cat >> confdefs.h <<\EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14790 #define HAVE_ESD_SOUND 1
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14791 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14792 }
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14793
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14794 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14795 test "$with_esd_sound" = "yes" && \
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14796 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14797 with_esd_sound=no
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14798 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14799 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14800
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
14801 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14802 echo " xemacs will be linked with \"miscplay.o\""
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14803 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14804
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14805
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14806 test -z "$with_tty" && with_tty=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14807
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14808 if test "$with_tty" = "yes" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14809 echo "checking for TTY-related features" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14810 echo "configure:14811: checking for TTY-related features" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14811 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14812 Defining HAVE_TTY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14813 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14814 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14815 #define HAVE_TTY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14816 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14817 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14818
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14819
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14820 if test -z "$with_ncurses"; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
14821
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14822 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14823 echo "configure:14824: checking for tgetent in -lncurses" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14824 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14825
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14826 xe_check_libs=" -lncurses "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14827 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14828 #line 14829 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14829 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14830 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14831 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14832 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14833 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14834
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14835 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14836 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14837 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14838 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14839 if { (eval echo configure:14840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14840 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14841 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14842 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14843 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14844 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14845 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14846 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14847 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14848 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14849 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14850
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14852 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14853 with_ncurses=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14854 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14855 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14856 with_ncurses=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14857 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14858
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14859
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14860 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14861 if test "$with_ncurses" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14862 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14863 Defining HAVE_NCURSES
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14864 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14865 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14866 #define HAVE_NCURSES 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14867 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14868 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14869
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14870 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14871 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14872 echo "configure:14873: checking for ncurses/curses.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14873
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14874 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14875 #line 14876 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14876 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14877 #include <ncurses/curses.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14878 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14880 { (eval echo configure:14881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14882 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14883 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14884 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14885 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14886 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14887 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14888 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14889 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14890 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14891 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14892 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14894 echo "$ac_t""yes" 1>&6
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14895 curses_h_file=ncurses/curses.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14896 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14897 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14898 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14899
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14900 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14901 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14902 echo "configure:14903: checking for ncurses/term.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14903
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14904 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14905 #line 14906 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14906 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14907 #include <ncurses/term.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14908 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14910 { (eval echo configure:14911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14912 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14913 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14914 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14915 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14916 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14917 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14918 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14919 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14920 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14921 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14922 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14924 echo "$ac_t""yes" 1>&6
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14925 term_h_file=ncurses/term.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14926 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14927 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14928 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14929
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14930 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14931 echo " xemacs will be linked with \"terminfo.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14932 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14933 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14934
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
14935 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14936 save_c_switch_site="$c_switch_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14937 c_switch_site="$c_switch_site -I/usr/include/ncurses"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14938 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14939 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14940 echo "configure:14941: checking for ncurses/curses.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14941
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14942 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14943 #line 14944 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14944 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14945 #include <ncurses/curses.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14946 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14948 { (eval echo configure:14949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14950 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14951 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14952 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14953 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14954 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14955 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14956 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14957 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14958 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14959 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14960 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14962 echo "$ac_t""yes" 1>&6
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14963 curses_h_file=ncurses/curses.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14964 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14965 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14966 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14967
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
14968 if test "$ac_cv_header_ncurses_curses_h" = "yes"
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
14969 then echo "configure: warning: Your system has the bogus ncurses include bug." 1>&2
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14970 else c_switch_site="$save_c_switch_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14971 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14972 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14973 else if test "$have_terminfo" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14974 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14975 echo " xemacs will be linked with \"terminfo.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14976 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14977 if test -n "$libs_termcap"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14978 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14979 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14980 for lib in curses termlib termcap; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14981
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14982 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14983 echo "configure:14984: checking for tgetent in -l$lib" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14984 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14985
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14986 xe_check_libs=" -l$lib "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14987 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14988 #line 14989 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14989 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14990 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14991 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14992 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14993 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14994
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14995 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14996 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14997 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14998 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
14999 if { (eval echo configure:15000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15000 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15001 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15002 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15003 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15004 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15005 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15006 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15007 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15008 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15009 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15010
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15012 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15013 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15014 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15015 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15016 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15017
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15018
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15019 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15020 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15021 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15022 echo " xemacs will be linked with \"tparam.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15023 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15024 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15025 if test -n "$libs_termcap"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15026 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15027 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15028
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15029 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15030 echo "configure:15031: checking for tgetent in -lcurses" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15031 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15032
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15033 xe_check_libs=" -lcurses "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15034 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15035 #line 15036 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15036 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15037 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15038 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15039 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15040 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15041
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15042 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15043 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15044 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15045 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15046 if { (eval echo configure:15047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15047 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15048 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15049 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15050 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15051 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15052 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15053 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15054 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15055 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15056 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15057
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15059 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15060 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15061 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15062 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15063 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15064 echo "configure:15065: checking for tgetent in -ltermcap" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15065 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15066
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15067 xe_check_libs=" -ltermcap "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15068 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15069 #line 15070 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15070 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15071 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15072 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15073 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15074 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15075
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15076 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15077 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15078 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15079 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15080 if { (eval echo configure:15081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15081 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15082 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15083 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15084 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15085 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15086 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15087 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15088 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15089 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15090 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15091
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15093 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15094 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15095 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15096 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15097 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15098 echo " xemacs will be linked with \"termcap.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15099 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15100 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15101
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15102
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15103 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15104
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15105
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15106 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15107 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15108 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15109 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15110 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15111 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15112 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15113 #define CURSES_H_FILE "${curses_h_file-curses.h}"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15114 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15115 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15116
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15117 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15118 Defining TERM_H_FILE = "${term_h_file-term.h}"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15119 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15120 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15121 #define TERM_H_FILE "${term_h_file-term.h}"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15122 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15123 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15124
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15125
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15126 if test "$with_gpm" != "no"; then
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15127 ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15128 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15129 echo "configure:15130: checking for gpm.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15130
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15131 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15132 #line 15133 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15133 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15134 #include <gpm.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15135 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15137 { (eval echo configure:15138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15139 if test -z "$ac_err"; then
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15140 rm -rf conftest*
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15141 eval "ac_cv_header_$ac_safe=yes"
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15142 else
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15143 echo "$ac_err" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15144 echo "configure: failed program was:" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15145 cat conftest.$ac_ext >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15146 rm -rf conftest*
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15147 eval "ac_cv_header_$ac_safe=no"
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15148 fi
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15149 rm -f conftest*
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15151 echo "$ac_t""yes" 1>&6
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15152
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15153
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15154 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15155 echo "configure:15156: checking for Gpm_Open in -lgpm" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15156 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15157
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15158 xe_check_libs=" -lgpm "
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15159 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15160 #line 15161 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15161 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15162 /* Override any gcc2 internal prototype to avoid an error. */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15163 /* We use char because int might match the return type of a gcc2
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15164 builtin and then its argument prototype would still apply. */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15165 char Gpm_Open();
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15166
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15167 int main() {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15168 Gpm_Open()
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15169 ; return 0; }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15170 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15171 if { (eval echo configure:15172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15172 rm -rf conftest*
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15173 eval "ac_cv_lib_$ac_lib_var=yes"
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15174 else
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15175 echo "configure: failed program was:" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15176 cat conftest.$ac_ext >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15177 rm -rf conftest*
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15178 eval "ac_cv_lib_$ac_lib_var=no"
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15179 fi
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15180 rm -f conftest*
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15181 xe_check_libs=""
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15182
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15184 echo "$ac_t""yes" 1>&6
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15185 have_gpm=yes
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15186 else
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15187 echo "$ac_t""no" 1>&6
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15188 fi
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15189
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15190
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15191 else
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15192 echo "$ac_t""no" 1>&6
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15193 fi
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15194
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15195 if test "$have_gpm" = "yes"; then
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15196 with_gpm=yes
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15197 { test "$extra_verbose" = "yes" && cat << \EOF
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15198 Defining HAVE_GPM
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15199 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15200 cat >> confdefs.h <<\EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15201 #define HAVE_GPM 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15202 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15203 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15204
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15205 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15206 elif test "$with_gpm" = "yes"; then
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15207 { echo "Error:" "GPM requested, but gpm.h or libgpm seems to be missing." >&2; exit 1; }
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15208 else
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15209 with_gpm=no
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15210 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15211 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15212
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15213 else for feature in ncurses gpm; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15214 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
15215 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15216 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15217 eval "with_${feature}=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15218 done
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15219 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15220
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15221 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15222 != "no no no" && echo "checking for database support" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15223 echo "configure:15224: checking for database support" >&5
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15224
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15225 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15226 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15227 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15228 echo "configure:15229: checking for ndbm.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15229
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15230 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15231 #line 15232 "configure"
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15232 #include "confdefs.h"
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15233 #include <ndbm.h>
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15234 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15236 { (eval echo configure:15237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15238 if test -z "$ac_err"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15239 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15240 eval "ac_cv_header_$ac_safe=yes"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15241 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15242 echo "$ac_err" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15243 echo "configure: failed program was:" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15244 cat conftest.$ac_ext >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15245 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15246 eval "ac_cv_header_$ac_safe=no"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15247 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15248 rm -f conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
15250 echo "$ac_t""yes" 1>&6
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15251 :
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15252 else
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15253 echo "$ac_t""no" 1>&6
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15254
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15255 test "$with_database_gdbm" = "yes" -o \
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15256 "$with_database_dbm" = "yes" && \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15257 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15258 with_database_gdbm=no with_database_dbm=no
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15259 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15260
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15261 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15262
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15263 if test "$with_database_gdbm" != "no"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15264
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15265 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15266 echo "configure:15267: checking for dbm_open in -lgdbm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15267 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15268
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15269 xe_check_libs=" -lgdbm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15270 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15271 #line 15272 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15272 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15273 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15274 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15275 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15276 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15277
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15278 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15279 dbm_open()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15280 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15281 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15282 if { (eval echo configure:15283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15283 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15284 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15285 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15286 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15287 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15288 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15289 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15290 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15291 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15292 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15293
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15295 echo "$ac_t""yes" 1>&6
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15296 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15297 else
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15298 echo "$ac_t""no" 1>&6
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15299 if test "$with_database_gdbm" = "yes"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15300 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15301 fi
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15302 with_database_gdbm=no
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15303 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15304
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15305
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15306 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15307
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15308 if test "$with_database_dbm" != "no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15309 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15310 echo "configure:15311: checking for dbm_open" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15311
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15312 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15313 #line 15314 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15314 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15315 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15316 which can conflict with char dbm_open(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15317 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15318 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15319 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15320 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15321 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15322
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15323 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15324
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15325 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15326 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15327 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15328 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15329 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15330 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15331 dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15332 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15333
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15334 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15335 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15336 if { (eval echo configure:15337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15337 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15338 eval "ac_cv_func_dbm_open=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15339 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15340 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15341 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15342 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15343 eval "ac_cv_func_dbm_open=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15344 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15345 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15346
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15347 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15348 echo "$ac_t""yes" 1>&6
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15349 with_database_dbm=yes libdbm=
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15350 else
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15351 echo "$ac_t""no" 1>&6
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15352
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15353
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15354 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15355 echo "configure:15356: checking for dbm_open in -ldbm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15356 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15357
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15358 xe_check_libs=" -ldbm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15359 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15360 #line 15361 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15361 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15362 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15363 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15364 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15365 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15366
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15367 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15368 dbm_open()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15369 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15370 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15371 if { (eval echo configure:15372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15372 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15373 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15374 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15375 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15376 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15377 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15378 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15379 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15380 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15381 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15382
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15384 echo "$ac_t""yes" 1>&6
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15385 with_database_dbm=yes libdbm=-ldbm
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15386 else
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15387 echo "$ac_t""no" 1>&6
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15388 test "$with_database_dbm" = "yes" && \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15389 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15390 with_database_dbm=no
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15391 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15392
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15393
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15394 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15395
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15396 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15397
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15398 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15399 test "$with_database_gdbm" = "yes" -o \
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15400 "$with_database_dbm" = "yes" && \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15401 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15402 Defining HAVE_DBM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15403 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15404 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15405 #define HAVE_DBM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15406 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15407 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15408
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15409
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15410 if test "$with_database_berkdb" != "no"; then
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15411 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15412 echo "configure:15413: checking for Berkeley db.h" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15413 for header in "db/db.h" "db.h"; do
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15414 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15415 #line 15416 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15416 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15417
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15418 #include <stdlib.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15419 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15420 #ifdef HAVE_INTTYPES_H
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15421 #define __BIT_TYPES_DEFINED__
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15422 #include <inttypes.h>
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15423 typedef uint8_t u_int8_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15424 typedef uint16_t u_int16_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15425 typedef uint32_t u_int32_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15426 #ifdef WE_DONT_NEED_QUADS
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15427 typedef uint64_t u_int64_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15428 #endif
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15429 #endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15430 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15431 #include <$header>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15432
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15433 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15434
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15435 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15436 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15437 if { (eval echo configure:15438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15438 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15439 db_h_file="$header"; break
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15440 else
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15441 echo "configure: failed program was:" >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15442 cat conftest.$ac_ext >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15443 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15444 rm -f conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15445 done
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15446 if test -z "$db_h_file"
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15447 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15448 else echo "$ac_t""$db_h_file" 1>&6
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15449 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15450
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15451 if test "$with_database_berkdb" != "no"; then
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15452 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15453 echo "configure:15454: checking for Berkeley DB version" >&5
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15454 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15455 #line 15456 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15456 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15457 #include <$db_h_file>
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15458 #if DB_VERSION_MAJOR > 1
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15459 yes
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15460 #endif
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15461
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15462 EOF
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15464 egrep "yes" >/dev/null 2>&1; then
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15465 rm -rf conftest*
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15466 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15467 #line 15468 "configure"
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15468 #include "confdefs.h"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15469 #include <$db_h_file>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15470 #if DB_VERSION_MAJOR > 2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15471 yes
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15472 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15473
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15474 EOF
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15476 egrep "yes" >/dev/null 2>&1; then
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15477 rm -rf conftest*
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15478 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15479 #line 15480 "configure"
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15480 #include "confdefs.h"
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15481 #include <$db_h_file>
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15482 #if DB_VERSION_MAJOR > 3
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15483 yes
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15484 #endif
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15485
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15486 EOF
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15488 egrep "yes" >/dev/null 2>&1; then
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15489 rm -rf conftest*
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15490 echo "$ac_t""4" 1>&6; dbfunc=db_create; dbver=4
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15491 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15492 rm -rf conftest*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15493
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15494 echo "$ac_t""3" 1>&6; dbfunc=db_create; dbver=3
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15495 fi
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15496 rm -f conftest*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15497
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15498 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15499 rm -rf conftest*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
15500
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15501 echo "$ac_t""2" 1>&6; dbfunc=db_open; dbver=2
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15502 fi
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15503 rm -f conftest*
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15504
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15505 else
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15506 rm -rf conftest*
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15507
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15508 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15509 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15510 rm -f conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15511
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15512 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15513 echo "configure:15514: checking for $dbfunc" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15514
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15515 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15516 #line 15517 "configure"
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15517 #include "confdefs.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15518 /* System header to define __stub macros and hopefully few prototypes,
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15519 which can conflict with char $dbfunc(); below. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15520 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15521 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15522 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15523 builtin and then its argument prototype would still apply. */
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15524 char $dbfunc();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15525
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15526 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15527
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15528 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15529 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15530 something starting with __ and the normal name is an alias. */
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15531 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15532 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15533 #else
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15534 $dbfunc();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15535 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15536
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15537 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15538 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15539 if { (eval echo configure:15540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15540 rm -rf conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15541 eval "ac_cv_func_$dbfunc=yes"
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15542 else
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15543 echo "configure: failed program was:" >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15544 cat conftest.$ac_ext >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15545 rm -rf conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15546 eval "ac_cv_func_$dbfunc=no"
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15547 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15548 rm -f conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15549
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15550 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15551 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15552 with_database_berkdb=yes need_libdb=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15553 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15554 echo "$ac_t""no" 1>&6
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15555
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15556
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15557 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15558 echo "configure:15559: checking for $dbfunc in -ldb" >&5
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15559 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15560
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15561 xe_check_libs=" -ldb "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15562 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15563 #line 15564 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15564 #include "confdefs.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15565 /* Override any gcc2 internal prototype to avoid an error. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15566 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15567 builtin and then its argument prototype would still apply. */
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15568 char $dbfunc();
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15569
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15570 int main() {
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15571 $dbfunc()
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15572 ; return 0; }
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15573 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15574 if { (eval echo configure:15575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15575 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15576 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15577 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15578 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15579 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15580 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15581 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15582 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15583 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15584 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15585
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15587 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15588 with_database_berkdb=yes need_libdb=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15589 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15590 echo "$ac_t""no" 1>&6
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15591 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15592
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15593
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15594 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15595
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15596 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
15597
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15598 if test "$with_database_berkdb" != "yes" -a "$dbver" = "4"; then
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15599 rm -f $tempcname
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15600 echo "#include <$db_h_file>" > $tempcname
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15601 echo "configure___ dbfunc=db_create" >> $tempcname
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15602 eval `$CPP -Isrc $tempcname \
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15603 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15604 rm -f $tempcname
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15605 echo "configure: warning: "db_create is really $dbfunc"" 1>&2
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15606
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15607 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15608 echo "configure:15609: checking for $dbfunc in -ldb" >&5
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15609 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15610
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15611 xe_check_libs=" -ldb "
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15612 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15613 #line 15614 "configure"
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15614 #include "confdefs.h"
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15615 /* Override any gcc2 internal prototype to avoid an error. */
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15616 /* We use char because int might match the return type of a gcc2
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15617 builtin and then its argument prototype would still apply. */
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15618 char $dbfunc();
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15619
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15620 int main() {
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15621 $dbfunc()
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15622 ; return 0; }
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15623 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15624 if { (eval echo configure:15625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1443
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15625 rm -rf conftest*
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15626 eval "ac_cv_lib_$ac_lib_var=yes"
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15627 else
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15628 echo "configure: failed program was:" >&5
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15629 cat conftest.$ac_ext >&5
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15630 rm -rf conftest*
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15631 eval "ac_cv_lib_$ac_lib_var=no"
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15632 fi
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15633 rm -f conftest*
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15634 xe_check_libs=""
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15635
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15637 echo "$ac_t""yes" 1>&6
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15638 with_database_berkdb=yes need_libdb=yes
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15639 else
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15640 echo "$ac_t""no" 1>&6
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15641 fi
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15642
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15643
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15644 fi
4f98e7b44323 [xemacs-hg @ 2003-05-02 06:16:42 by stephent]
stephent
parents: 1427
diff changeset
15645
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15646 if test "$with_database_berkdb" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15647 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15648 Defining DB_H_FILE = "$db_h_file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15649 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15650 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15651 #define DB_H_FILE "$db_h_file"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15652 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15653 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15654
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15655 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15656 Defining HAVE_BERKELEY_DB
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15657 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15658 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15659 #define HAVE_BERKELEY_DB 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15660 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15661 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15662
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15663 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15664 else with_database_berkdb=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15665 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15666 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15667
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15668 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15669 != "no no no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15670 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15671 Defining HAVE_DATABASE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15672 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15673 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15674 #define HAVE_DATABASE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15675 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15676 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15677
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15678 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15679
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15680 if test "$with_socks" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15681
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15682 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15683 echo "configure:15684: checking for SOCKSinit in -lsocks" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15684 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15685
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15686 xe_check_libs=" -lsocks "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15687 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15688 #line 15689 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15689 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15690 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15691 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15692 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15693 char SOCKSinit();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15694
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15695 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15696 SOCKSinit()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15697 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15698 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15699 if { (eval echo configure:15700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15700 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15701 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15702 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15703 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15704 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15705 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15706 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15707 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15708 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15709 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15710
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15712 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15713 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15714 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15715 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15716 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15717 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15718 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15719 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15720 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15721 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15722
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15723 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15724
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15725 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15726 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15727 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15728
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15729
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15730 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15731 Defining HAVE_SOCKS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15732 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15733 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15734 #define HAVE_SOCKS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15735 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15736 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15737
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15738 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15739
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15740 if test "$usage_tracking" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15741 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15742 Defining USAGE_TRACKING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15743 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15744 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15745 #define USAGE_TRACKING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15746 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15747 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15748
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15749 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15750 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15751
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15752 if test "$use_number_lib" = "gmp"; then
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15753 ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15754 echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15755 echo "configure:15756: checking for gmp.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15756
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15757 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15758 #line 15759 "configure"
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15759 #include "confdefs.h"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15760 #include <gmp.h>
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15761 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15763 { (eval echo configure:15764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15765 if test -z "$ac_err"; then
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15766 rm -rf conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15767 eval "ac_cv_header_$ac_safe=yes"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15768 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15769 echo "$ac_err" >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15770 echo "configure: failed program was:" >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15771 cat conftest.$ac_ext >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15772 rm -rf conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15773 eval "ac_cv_header_$ac_safe=no"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15774 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15775 rm -f conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15777 echo "$ac_t""yes" 1>&6
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15778
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15779
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15780 echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15781 echo "configure:15782: checking for __gmpz_init in -lgmp" >&5
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15782 ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15783
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15784 xe_check_libs=" -lgmp "
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15785 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15786 #line 15787 "configure"
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15787 #include "confdefs.h"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15788 /* Override any gcc2 internal prototype to avoid an error. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15789 /* We use char because int might match the return type of a gcc2
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15790 builtin and then its argument prototype would still apply. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15791 char __gmpz_init();
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15792
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15793 int main() {
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15794 __gmpz_init()
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15795 ; return 0; }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15796 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15797 if { (eval echo configure:15798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15798 rm -rf conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15799 eval "ac_cv_lib_$ac_lib_var=yes"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15800 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15801 echo "configure: failed program was:" >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15802 cat conftest.$ac_ext >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15803 rm -rf conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15804 eval "ac_cv_lib_$ac_lib_var=no"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15805 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15806 rm -f conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15807 xe_check_libs=""
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15808
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15810 echo "$ac_t""yes" 1>&6
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15811 have_mpz_init=yes
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15812 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15813 echo "$ac_t""no" 1>&6
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15814 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15815
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15816
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15817 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15818 echo "$ac_t""no" 1>&6
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15819 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15820
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15821 if test "$have_mpz_init" = "yes"; then
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15822 { test "$extra_verbose" = "yes" && cat << \EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15823 Defining WITH_NUMBER_TYPES
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15824 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15825 cat >> confdefs.h <<\EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15826 #define WITH_NUMBER_TYPES 1
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15827 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15828 }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15829
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15830 { test "$extra_verbose" = "yes" && cat << \EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15831 Defining WITH_GMP
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15832 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15833 cat >> confdefs.h <<\EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15834 #define WITH_GMP 1
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15835 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15836 }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15837
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15838 LIBS="-lgmp $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgmp\" to \$LIBS"; fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15839 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15840 { echo "Error:" "Required GMP numeric support cannot be provided." >&2; exit 1; }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15841 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15842 elif test "$use_number_lib" = "mp"; then
1997
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15843 for library in "" "-lcrypto"; do
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15844 ac_safe=`echo "mp.h" | sed 'y%./+-%__p_%'`
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15845 echo $ac_n "checking for mp.h""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15846 echo "configure:15847: checking for mp.h" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15847
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15848 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15849 #line 15850 "configure"
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15850 #include "confdefs.h"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15851 #include <mp.h>
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15852 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15854 { (eval echo configure:15855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15856 if test -z "$ac_err"; then
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15857 rm -rf conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15858 eval "ac_cv_header_$ac_safe=yes"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15859 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15860 echo "$ac_err" >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15861 echo "configure: failed program was:" >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15862 cat conftest.$ac_ext >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15863 rm -rf conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15864 eval "ac_cv_header_$ac_safe=no"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15865 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15866 rm -f conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15868 echo "$ac_t""yes" 1>&6
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15869
1997
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15870
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15871 xe_msg_checking="for mp_mfree in -lmp"
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15872 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library"
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15873 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15874 echo "configure:15875: checking "$xe_msg_checking"" >&5
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15875 ac_lib_var=`echo mp'_'mp_mfree | sed 'y%./+-%__p_%'`
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15876
1997
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15877 xe_check_libs=" -lmp $library"
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15878 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15879 #line 15880 "configure"
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15880 #include "confdefs.h"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15881 /* Override any gcc2 internal prototype to avoid an error. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15882 /* We use char because int might match the return type of a gcc2
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15883 builtin and then its argument prototype would still apply. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15884 char mp_mfree();
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15885
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15886 int main() {
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15887 mp_mfree()
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15888 ; return 0; }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15889 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15890 if { (eval echo configure:15891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2009
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15891 rm -rf conftest*
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15892 eval "ac_cv_lib_$ac_lib_var=yes"
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15893 else
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15894 echo "configure: failed program was:" >&5
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15895 cat conftest.$ac_ext >&5
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15896 rm -rf conftest*
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15897 eval "ac_cv_lib_$ac_lib_var=no"
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15898 fi
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15899 rm -f conftest*
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15900 xe_check_libs=""
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15901
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15903 echo "$ac_t""yes" 1>&6
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15904 have_mp_mfree=yes; break
1997
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15905 else
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15906 echo "$ac_t""no" 1>&6
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15907
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15908 xe_msg_checking="for mfree in -lmp"
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15909 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library"
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15910 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15911 echo "configure:15912: checking "$xe_msg_checking"" >&5
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15912 ac_lib_var=`echo mp'_'mfree | sed 'y%./+-%__p_%'`
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15913
1997
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15914 xe_check_libs=" -lmp $library"
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15915 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15916 #line 15917 "configure"
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15917 #include "confdefs.h"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15918 /* Override any gcc2 internal prototype to avoid an error. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15919 /* We use char because int might match the return type of a gcc2
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15920 builtin and then its argument prototype would still apply. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15921 char mfree();
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15922
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15923 int main() {
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15924 mfree()
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15925 ; return 0; }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15926 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15927 if { (eval echo configure:15928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2009
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15928 rm -rf conftest*
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15929 eval "ac_cv_lib_$ac_lib_var=yes"
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15930 else
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15931 echo "configure: failed program was:" >&5
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15932 cat conftest.$ac_ext >&5
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15933 rm -rf conftest*
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15934 eval "ac_cv_lib_$ac_lib_var=no"
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15935 fi
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15936 rm -f conftest*
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15937 xe_check_libs=""
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15938
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15940 echo "$ac_t""yes" 1>&6
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15941 have_mfree=yes; break
1997
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15942 else
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15943 echo "$ac_t""no" 1>&6
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15944 fi
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15945
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15946
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15947 fi
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15948
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15949
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15950 else
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15951 echo "$ac_t""no" 1>&6
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15952 fi
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15953
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15954 done
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15955 if test "$have_mp_mfree" = "yes"; then
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15956 { test "$extra_verbose" = "yes" && cat << \EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15957 Defining MP_PREFIX
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15958 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15959 cat >> confdefs.h <<\EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15960 #define MP_PREFIX 1
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15961 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15962 }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15963
1997
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
15964 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi
2009
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15965 if test "$library" != ""; then
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15966 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
15967 fi
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15968 echo $ac_n "checking for mp_move""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15969 echo "configure:15970: checking for mp_move" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15970
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15971 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15972 #line 15973 "configure"
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15973 #include "confdefs.h"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15974 /* System header to define __stub macros and hopefully few prototypes,
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15975 which can conflict with char mp_move(); below. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15976 #include <assert.h>
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15977 /* Override any gcc2 internal prototype to avoid an error. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15978 /* We use char because int might match the return type of a gcc2
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15979 builtin and then its argument prototype would still apply. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15980 char mp_move();
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15981
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15982 int main() {
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15983
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15984 /* The GNU C library defines this for functions which it implements
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15985 to always fail with ENOSYS. Some functions are actually named
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15986 something starting with __ and the normal name is an alias. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15987 #if defined (__stub_mp_move) || defined (__stub___mp_move)
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15988 choke me
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15989 #else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15990 mp_move();
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15991 #endif
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15992
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15993 ; return 0; }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15994 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
15995 if { (eval echo configure:15996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15996 rm -rf conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15997 eval "ac_cv_func_mp_move=yes"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15998 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
15999 echo "configure: failed program was:" >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16000 cat conftest.$ac_ext >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16001 rm -rf conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16002 eval "ac_cv_func_mp_move=no"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16003 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16004 rm -f conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16005
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16006 if eval "test \"`echo '$ac_cv_func_'mp_move`\" = yes"; then
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16007 echo "$ac_t""yes" 1>&6
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16008 { test "$extra_verbose" = "yes" && cat << \EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16009 Defining HAVE_MP_MOVE
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16010 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16011 cat >> confdefs.h <<\EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16012 #define HAVE_MP_MOVE 1
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16013 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16014 }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16015
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16016 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16017 echo "$ac_t""no" 1>&6
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16018 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16019
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16020 elif test "$have_mfree" = "yes"; then
1997
f02e47602886 [xemacs-hg @ 2004-04-07 16:23:49 by james]
james
parents: 1988
diff changeset
16021 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi
2009
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
16022 if test "$library" != ""; then
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
16023 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi
1388c8b3e663 [xemacs-hg @ 2004-04-13 04:23:49 by james]
james
parents: 2006
diff changeset
16024 fi
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16025 echo $ac_n "checking for move""... $ac_c" 1>&6
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
16026 echo "configure:16027: checking for move" >&5
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
16027
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
16028 cat > conftest.$ac_ext <<EOF
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
16029 #line 16030 "configure"
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16030 #include "confdefs.h"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16031 /* System header to define __stub macros and hopefully few prototypes,
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16032 which can conflict with char move(); below. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16033 #include <assert.h>
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16034 /* Override any gcc2 internal prototype to avoid an error. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16035 /* We use char because int might match the return type of a gcc2
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16036 builtin and then its argument prototype would still apply. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16037 char move();
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16038
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16039 int main() {
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16040
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16041 /* The GNU C library defines this for functions which it implements
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16042 to always fail with ENOSYS. Some functions are actually named
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16043 something starting with __ and the normal name is an alias. */
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16044 #if defined (__stub_move) || defined (__stub___move)
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16045 choke me
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16046 #else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16047 move();
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16048 #endif
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16049
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16050 ; return 0; }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16051 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
16052 if { (eval echo configure:16053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16053 rm -rf conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16054 eval "ac_cv_func_move=yes"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16055 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16056 echo "configure: failed program was:" >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16057 cat conftest.$ac_ext >&5
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16058 rm -rf conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16059 eval "ac_cv_func_move=no"
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16060 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16061 rm -f conftest*
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16062
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16063 if eval "test \"`echo '$ac_cv_func_'move`\" = yes"; then
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16064 echo "$ac_t""yes" 1>&6
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16065 { test "$extra_verbose" = "yes" && cat << \EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16066 Defining HAVE_MP_MOVE
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16067 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16068 cat >> confdefs.h <<\EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16069 #define HAVE_MP_MOVE 1
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16070 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16071 }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16072
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16073 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16074 echo "$ac_t""no" 1>&6
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16075 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16076
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16077 else
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16078 { echo "Error:" "Required MP numeric support cannot be provided." >&2; exit 1; }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16079 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16080 { test "$extra_verbose" = "yes" && cat << \EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16081 Defining WITH_NUMBER_TYPES
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16082 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16083 cat >> confdefs.h <<\EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16084 #define WITH_NUMBER_TYPES 1
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16085 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16086 }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16087
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16088 { test "$extra_verbose" = "yes" && cat << \EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16089 Defining WITH_MP
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16090 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16091 cat >> confdefs.h <<\EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16092 #define WITH_MP 1
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16093 EOF
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16094 }
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16095
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16096 fi
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16097
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16098 cat > conftest.$ac_ext <<EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
16099 #line 16100 "configure"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16100 #include "confdefs.h"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16101 int main(int c,char *v[]){return 0;}
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16102 EOF
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
16103 if { (eval echo configure:16104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16104 then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16105 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16106 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16107 conftest_rc="$?"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16108 echo "configure: failed program was:" >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16109 cat conftest.$ac_ext >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16110 rm -fr conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16111
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16112 echo ""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16113 echo "*** PANIC *** The C compiler can no longer build working executables."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16114 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16115 echo "*** PANIC *** The most likely reason for this problem is that configure"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16116 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16117 echo "*** PANIC *** found at run time."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16118 echo "*** PANIC ***"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16119 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16120 echo "*** PANIC *** On other systems, try telling configure where to find the"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16121 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16122 echo "*** PANIC ***"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16123 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16124 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16125 echo "*** PANIC *** on your system. Don't do that."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16126 exit 1
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16127 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16128 rm -fr conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16129
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 744
diff changeset
16130 if test "$win32_processes" != "yes"; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
16131 { test "$extra_verbose" = "yes" && cat << \EOF
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
16132 Defining HAVE_UNIX_PROCESSES
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
16133 EOF
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
16134 cat >> confdefs.h <<\EOF
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
16135 #define HAVE_UNIX_PROCESSES 1
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
16136 EOF
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
16137 }
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
16138
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
16139 fi
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
16140
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16141
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16142 if test "$with_modules" = "yes"; then
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16143 ld_libs_module=
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16144 else
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16145
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16146 T=""
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16147 for W in $ldap_libs $postgresql_libs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16148 ld_libs_module="$T"
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16149
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16150 fi
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16151
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16152
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16153 T=""
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
16154 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
16155 CFLAGS="$T"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
16156
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
16157
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
16158 T=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16159 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16160 extra_objs="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16161
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16162
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16163 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16164 for W in -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16165 c_switch_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16166
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16167
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16168 T=""
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
16169 for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16170 c_switch_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16171
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16172
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16173 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16174 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16175 c_switch_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16176
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16177
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16178 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16179 for W in $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16180 ld_switch_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16181
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16182
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16183 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16184 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16185 ld_switch_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16186
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16187
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16188 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16189 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16190 ld_switch_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16191
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16192
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16193 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16194 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16195 ld_libs_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16196
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16197
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16198 T=""
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
16199 for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16200 ld_libs_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16201
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16202
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16203 T=""
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
16204 for W in $ld_libs_window_system $ld_libs_general $ld_libs_module; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16205 ld_libs_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16206
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16207
1491
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
16208 if test "$with_modules" = "no"; then
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
16209 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
16210 fi
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
16211
d968d4073031 [xemacs-hg @ 2003-05-20 18:57:50 by james]
james
parents: 1470
diff changeset
16212
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16213 internal_makefile_list="Makefile.in"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16214 SUBDIR_MAKEFILES=''
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16215 test -d lock || mkdir lock
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16216 for dir in $MAKE_SUBDIR; do
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
16217 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
16218 test -d "$d" || mkdir "$d"; cd "$d"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
16219 done ) ;;
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
16220 * ) test -d "$dir" || mkdir "$dir" ;;
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
16221 esac
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16222
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16223 T=""
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
16224 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16225 SUBDIR_MAKEFILES="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16226
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16227
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16228 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16229 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16230 internal_makefile_list="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16231
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16232 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16233
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16234
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16235
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
16236
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
16237 for dir in src/s src/m; do
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
16238 if test ! -d "$dir" ; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
16239 echo Making symbolic link to "$srcdir/$dir"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
16240 ${LN_S} "$srcdir/$dir" "$dir"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
16241 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
16242 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
16243
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
16244 if test "$need_modules_common" = "yes"; then
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
16245 for dir in modules/common; do
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
16246 if test ! -d "$dir" ; then
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
16247 echo Making symbolic link to "$srcdir/$dir"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
16248 ${LN_S} "$srcdir/$dir" "$dir"
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
16249 fi
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
16250 done
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
16251 fi
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
16252
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16253 if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16254 echo ""
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16255 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16256 echo ""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16257 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16258
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16259
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16260 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16261 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16262 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16263 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16264
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16265 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16266 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16267 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16268 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16269
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16270 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16271 test "$extra_verbose" = "yes" && echo "creating TAGS"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16272 echo "
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16273 $srcdir/TAGS,include" > "TAGS"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16274 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16275
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16276 if test "$__SUNPRO_C" = "yes"; then
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
16277 test "$extra_verbose" = "yes" && echo "creating .sbinit"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
16278 ( echo "# For use with Sun WorkShop's Source browser."
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
16279 echo "# See sbquery(1) and sbinit(4) for more information"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
16280 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
16281 ) > .sbinit
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
16282 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16283
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16284 rm -f core
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16285
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16286
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16287
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16288
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16289
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16290
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16291
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16292
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16293
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16294
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16295
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16296
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16297
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16298
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16299
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
16300
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16301
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
16302
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
16303
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16304 PREFIX=$prefix
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16305 while true; do
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16306 case "$PREFIX" in
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16307 *\$* ) eval "PREFIX=$PREFIX" ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16308 *) break ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16309 esac
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16310 done
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16311
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16312
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16313
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16314
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16315 EXEC_PREFIX=$exec_prefix
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16316 while true; do
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16317 case "$EXEC_PREFIX" in
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16318 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16319 *) break ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16320 esac
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16321 done
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16322
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16323
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16324
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16325
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16326 INFODIR=$infodir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16327 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16328 case "$INFODIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16329 *\$* ) eval "INFODIR=$INFODIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16330 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16331 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16332 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16333
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16334
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16335
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16336
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16337 INFOPATH=$infopath
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16338 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16339 case "$INFOPATH" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16340 *\$* ) eval "INFOPATH=$INFOPATH" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16341 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16342 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16343 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16344
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16345
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16346
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16347
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16348 PACKAGE_PATH=$package_path
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16349 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16350 case "$PACKAGE_PATH" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16351 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16352 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16353 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16354 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16355
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16356
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16357
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16358
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16359 LISPDIR=$lispdir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16360 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16361 case "$LISPDIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16362 *\$* ) eval "LISPDIR=$LISPDIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16363 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16364 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16365 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16366
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16367
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16368
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16369
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16370 MODULEDIR=$moduledir
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16371 while true; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16372 case "$MODULEDIR" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16373 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16374 *) break ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16375 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16376 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16377
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16378
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16379
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16380
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16381 SITELISPDIR=$sitelispdir
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16382 while true; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16383 case "$SITELISPDIR" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16384 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16385 *) break ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16386 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16387 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16389
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16390
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16391
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16392 SITEMODULEDIR=$sitemoduledir
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16393 while true; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16394 case "$SITEMODULEDIR" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16395 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16396 *) break ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16397 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16398 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16399
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16400
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16401
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16402
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16403 ETCDIR=$etcdir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16404 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16405 case "$ETCDIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16406 *\$* ) eval "ETCDIR=$ETCDIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16407 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16408 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16409 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16410
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16411
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16412
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16413
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16414 DOCDIR=$docdir
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16415 while true; do
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16416 case "$DOCDIR" in
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16417 *\$* ) eval "DOCDIR=$DOCDIR" ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16418 *) break ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16419 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16420 done
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16421
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16422
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16423
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16424
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16425 ARCHLIBDIR=$archlibdir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16426 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16427 case "$ARCHLIBDIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16428 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16429 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16430 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16431 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16432
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16433
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16434
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16435
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16436
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16437
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16438
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16439
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16440
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16441
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16442
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16443
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16444
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16445
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16446
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16447
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
16448
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
16449
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
16450
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
16451
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16452 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16453
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16454
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16455
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16456
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16457
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16458
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16459
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
16460
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16461
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16462
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16463 if test "$with_prefix" = "yes"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16464 { test "$extra_verbose" = "yes" && cat << \EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16465 Defining PREFIX_USER_DEFINED
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16466 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16467 cat >> confdefs.h <<\EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16468 #define PREFIX_USER_DEFINED 1
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16469 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16470 }
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16471
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16472 fi
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16473
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
16474 if test "$with_site_lisp" = "no"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
16475 { test "$extra_verbose" = "yes" && cat << \EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
16476 Defining INHIBIT_SITE_LISP
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
16477 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
16478 cat >> confdefs.h <<\EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
16479 #define INHIBIT_SITE_LISP 1
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
16480 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
16481 }
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
16482
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
16483 fi
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16484 if test "$with_site_modules" = "no"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16485 { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16486 Defining INHIBIT_SITE_MODULES
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16487 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16488 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16489 #define INHIBIT_SITE_MODULES 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16490 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16491 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16492
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16493 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16494
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
16495
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
16496 T=""
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
16497 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
16498 ac_configure_args="$T"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
16499
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16500 { test "$extra_verbose" = "yes" && cat << EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
16501 Defining EMACS_CONFIGURATION = "$configuration"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16502 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16503 cat >> confdefs.h <<EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
16504 #define EMACS_CONFIGURATION "$configuration"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16505 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16506 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16507
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16508 { test "$extra_verbose" = "yes" && cat << EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
16509 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16510 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16511 cat >> confdefs.h <<EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
16512 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16513 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16514 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16515
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16516
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16517
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16518 null_string=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16519 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16520 Defining LD_SWITCH_X_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16521 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16522 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16523 #define LD_SWITCH_X_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16524 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16525 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16526
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16527 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16528 Defining LD_SWITCH_X_SITE_AUX = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16529 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16530 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16531 #define LD_SWITCH_X_SITE_AUX $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16532 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16533 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16534
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16535 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16536 Defining C_SWITCH_X_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16537 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16538 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16539 #define C_SWITCH_X_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16540 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16541 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16542
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16543 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16544 Defining LD_SWITCH_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16545 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16546 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16547 #define LD_SWITCH_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16548 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16549 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16550
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16551 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16552 Defining C_SWITCH_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16553 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16554 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16555 #define C_SWITCH_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16556 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16557 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16558
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16559
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16560
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16561 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16562 Defining GNU_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16563 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16564 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16565 #define GNU_MALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16566 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16567 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16568
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16569 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16570 Defining USE_SYSTEM_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16571 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16572 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16573 #define USE_SYSTEM_MALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16574 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16575 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16576
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16577 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16578 Defining USE_DEBUG_MALLOC
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16579 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16580 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16581 #define USE_DEBUG_MALLOC 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16582 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16583 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16584
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16585 { test "$extra_verbose" = "yes" && cat << \EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16586 Defining USE_SYSTEM_MALLOC
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16587 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16588 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16589 #define USE_SYSTEM_MALLOC 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16590 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16591 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
16592
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16593 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
16594 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16595 Defining USE_GCC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16596 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16597 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16598 #define USE_GCC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16599 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16600 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16601
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16602 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16603 Defining EXTERNAL_WIDGET
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16604 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16605 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16606 #define EXTERNAL_WIDGET 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16607 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16608 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16609
925
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
16610 test "$use_kkcc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
16611 Defining USE_KKCC
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
16612 EOF
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
16613 cat >> confdefs.h <<\EOF
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
16614 #define USE_KKCC 1
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
16615 EOF
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
16616 }
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
16617
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16618 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16619 Defining QUICK_BUILD
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16620 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16621 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16622 #define QUICK_BUILD 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16623 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16624 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16625
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16626 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16627 Defining PURIFY
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16628 EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16629 cat >> confdefs.h <<\EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16630 #define PURIFY 1
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16631 EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16632 }
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16633
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16634 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16635 Defining QUANTIFY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16636 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16637 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16638 #define QUANTIFY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16639 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16640 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16641
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16642 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16643 Defining MAIL_USE_POP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16644 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16645 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16646 #define MAIL_USE_POP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16647 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16648 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16649
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16650 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16651 Defining KERBEROS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16652 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16653 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16654 #define KERBEROS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16655 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16656 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16657
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16658 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16659 Defining HESIOD
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16660 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16661 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16662 #define HESIOD 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16663 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16664 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16665
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16666 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16667 Defining USE_UNION_TYPE
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16668 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16669 cat >> confdefs.h <<\EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16670 #define USE_UNION_TYPE 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16671 EOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16672 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
16673
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
16674 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
16675 Defining PDUMP
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
16676 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
16677 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
16678 #define PDUMP 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
16679 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
16680 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
16681
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
16682 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
16683 Defining IPV6_CANONICALIZE
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
16684 EOF
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
16685 cat >> confdefs.h <<\EOF
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
16686 #define IPV6_CANONICALIZE 1
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
16687 EOF
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
16688 }
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 720
diff changeset
16689
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
16690
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16691
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16692
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
16693 (
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16694 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16695 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16696 echo "uname -a: `uname -a`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16697 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16698 echo ""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16699 echo "$0 $quoted_arguments"
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
16700 ) > Installation
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
16701
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
16702 if test ! -z ${emacs_beta_version} ; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
16703 if test -z "${emacs_is_beta}" ; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
16704 xemacs_betaname=".${emacs_beta_version}"
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
16705 else
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
16706 xemacs_betaname="-b${emacs_beta_version}"
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
16707 fi
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
16708 else
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
16709 xemacs_betaname=""
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
16710 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16711
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
16712 (
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16713 echo "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16714
975
151d438d2d55 [xemacs-hg @ 2002-08-28 05:36:20 by youngs]
youngs
parents: 925
diff changeset
16715 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" $xemacs_extra_name configured for \`$canonical'.
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16716 "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16717 echo "
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16718 Compilation Environment and Installation Defaults:"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16719 echo " Source code location: $srcdir"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16720 echo " Installation prefix: $prefix"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
16721 if test -n "$site_includes"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16722 echo " Additional header files: $site_includes"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16723 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16724 if test -n "$site_libraries"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16725 echo " Additional libraries: $site_libraries"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16726 fi
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
16727 if test -n "$site_prefixes"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16728 echo " Additional prefixes: $site_prefixes"
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
16729 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16730 if test -n "$runpath"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16731 echo " Runtime library search path: $runpath"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16732 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16733
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16734 if test -n "$opsysfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16735 then echo " Operating system description file: \`$opsysfile'"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16736 else echo " Not using any operating system description file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16737 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16738 if test -n "$machfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16739 then echo " Machine description file: \`$machfile'"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16740 else echo " Not using any machine description file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16741 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16742
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16743 echo " Compiler version: $compiler_version"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16744 if test -n "$gcc_compiler_specs"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16745 echo " - GCC specs file: $gcc_compiler_specs"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16746 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16747 echo " - Compiler command: $XEMACS_CC $XE_CFLAGS"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16748 if test "$CC" != "$XEMACS_CC"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16749 echo " Compiler version for lib-src: (detection code unimplemented)"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16750 echo " - Compiler command for lib-src: $CC $CFLAGS"
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16751 if test "$xemacs_cc_cc_mismatch" = "yes"; then
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16752 echo " WARNING: CC and XEMACS_CC mismatched; check CFLAGS carefully."
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16753 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16754 fi
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
16755 echo " libc version: $libc_version"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16756 echo " Relocating allocator for buffers: $rel_alloc"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16757 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
708
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
16758 case "$ld_switch_site" in
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
16759 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
16760 - Consider configuring with --pdump." ;;
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
16761 esac
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16762
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16763 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16764 Window System:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16765 if test "$with_msw" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16766 echo " Compiling in support for the Microsoft window system."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16767 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16768 if test "$with_x11" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16769 echo " Compiling in support for the X window system:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16770 echo " - X Windows headers location: $x_includes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16771 echo " - X Windows libraries location: $x_libraries"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16772 if test "$with_xauth" != yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16773 echo " - Xau (X authority) not available."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16774 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16775 if test "$with_xmu" != yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16776 echo " - Xmu library not available; substituting equivalent routines."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16777 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16778 if test "$with_wmcommand" != no; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16779 echo " - Handling WM_COMMAND properly."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16780 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16781 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16782 if test "$need_athena" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16783 echo " Compiling in support for the Athena widget set:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16784 echo " - Athena headers location: $athena_h_path"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16785 echo " - Athena library to link: $athena_lib"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16786 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16787 case "$with_menubars" in
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
16788 gtk ) echo " Using GTK menubars." ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16789 lucid ) echo " Using Lucid menubars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16790 motif ) echo " Using Motif menubars."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16791 echo " *WARNING* The Motif menubar implementation is currently buggy."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16792 echo " We recommend using the Lucid menubar instead."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16793 echo " Re-run configure with --with-menubars='lucid'." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16794 msw ) echo " Using MS-Windows menubars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16795 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16796 case "$with_scrollbars" in
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
16797 gtk ) echo " Using GTK scrollbars." ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16798 lucid ) echo " Using Lucid scrollbars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16799 motif ) echo " Using Motif scrollbars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16800 athena ) echo " Using Athena scrollbars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16801 msw ) echo " Using MS-Windows scrollbars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16802 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16803 case "$with_dialogs" in
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
16804 gtk ) echo " Using GTK dialog boxes." ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16805 motif ) echo " Using Motif dialog boxes."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16806 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16807 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16808 echo " We recommend using the Athena dialog boxes instead."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16809 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16810 echo " Read the PROBLEMS file for more information."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16811 fi; fi ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16812 athena ) echo " Using Athena dialog boxes." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16813 msw ) echo " Using MS-Windows dialog boxes." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16814 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16815 case "$with_widgets" in
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
16816 gtk ) echo " Using GTK native widgets." ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16817 motif ) echo " Using Motif native widgets." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16818 athena ) echo " Using Athena native widgets." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16819 msw ) echo " Using MS-Windows native widgets." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16820 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16821 if test "$with_dragndrop" = yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16822 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16823 echo " - Drag'n'Drop prototype: $dragndrop_proto."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16824 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16825
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16826 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16827 TTY:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16828 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16829 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16830
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16831 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16832 Images:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16833 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
16834 if test "$with_xpm" = yes; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16835 echo " Compiling in support for XPM images."
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
16836 elif test "$with_x11" = yes; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16837 echo " WARNING: -----------------------------------------------------------"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16838 echo " WARNING: Compiling without XPM image support."
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16839 if test "$xpm_problem" != ""; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16840 echo " Reason: $xpm_problem"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16841 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16842 echo " WARNING: You should strongly consider installing XPM."
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16843 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16844 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16845 echo " WARNING: -----------------------------------------------------------"
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
16846 fi
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16847 if test "$with_png" = yes; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16848 echo " Compiling in support for PNG images."
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16849 elif test "$window_system" != "none"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16850 echo " WARNING: -----------------------------------------------------------"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16851 echo " WARNING: Compiling without PNG image support."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16852 if test "$png_problem" != ""; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16853 echo " Reason: $png_problem"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16854 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16855 echo " WARNING: You should strongly consider installing the PNG libraries."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16856 echo " WARNING: Otherwise certain images and glyphs may not display."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
16857 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16858 echo " WARNING: -----------------------------------------------------------"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16859 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16860 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16861 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
310
851ff35f137f Import from CVS: tag r21-0b53
cvs
parents: 308
diff changeset
16862 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
16863
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16864 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16865 Sound:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16866 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16867 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16868 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16869 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16870
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16871 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16872 Databases:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16873 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
16874 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
16875 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16876 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16877 if test "$with_postgresql" = yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16878 echo " Compiling in support for PostgreSQL."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16879 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16880 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16881 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16882
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16883 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16884 Internationalization:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16885 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16886 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16887 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16888 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16889 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16890 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
16891 if test "$with_wnn" = yes; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
16892 echo " Compiling in support for the WNN input method on Mule."
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16893 test "$with_wnn6" = yes && echo " - Using WNN version 6."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16894 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16895
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16896 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16897 Mail:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16898 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16899 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16900 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16901 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16902
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16903 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16904 Other Features:"
708
512e4a478e9d [xemacs-hg @ 2001-12-20 06:08:09 by andyp]
andyp
parents: 670
diff changeset
16905 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
16906 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16907 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16908 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16909 test "$with_dnet" = yes && echo " Compiling in support for DNET."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16910 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
1984
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16911 test "$use_number_lib" = "gmp" && echo " Compiling in support for more number types using the GNU MP library."
36760cdcb631 [xemacs-hg @ 2004-04-05 22:50:44 by james]
james
parents: 1955
diff changeset
16912 test "$use_number_lib" = "mp" && echo " Compiling in support for more number types using the BSD MP library."
1202
6041a741b6d6 [xemacs-hg @ 2003-01-12 11:03:13 by michaels]
michaels
parents: 1161
diff changeset
16913 if test "$use_union_type" = yes ; then
6041a741b6d6 [xemacs-hg @ 2003-01-12 11:03:13 by michaels]
michaels
parents: 1161
diff changeset
16914 echo " Using the union type for Lisp_Objects."
6041a741b6d6 [xemacs-hg @ 2003-01-12 11:03:13 by michaels]
michaels
parents: 1161
diff changeset
16915 echo " WARNING: ---------------------------------------------------------"
6041a741b6d6 [xemacs-hg @ 2003-01-12 11:03:13 by michaels]
michaels
parents: 1161
diff changeset
16916 echo " WARNING: This tends to trigger compiler bugs, especially when"
6041a741b6d6 [xemacs-hg @ 2003-01-12 11:03:13 by michaels]
michaels
parents: 1161
diff changeset
16917 echo " WARNING: combined with MULE and ERROR_CHECKING. Crashes have"
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
16918 echo " WARNING: been seen with various versions of GCC (up to about 2.95),"
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
16919 echo " WARNING: and recently with Visual C++ as well (mid-2003)."
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
16920 echo " WARNING: More recent versions may be safer, or not."
1202
6041a741b6d6 [xemacs-hg @ 2003-01-12 11:03:13 by michaels]
michaels
parents: 1161
diff changeset
16921 echo " WARNING: ---------------------------------------------------------"
6041a741b6d6 [xemacs-hg @ 2003-01-12 11:03:13 by michaels]
michaels
parents: 1161
diff changeset
16922 fi
925
c4937d1216b6 [xemacs-hg @ 2002-07-16 08:26:38 by michaels]
michaels
parents: 911
diff changeset
16923 test "$use_kkcc" = yes && echo " Using the new GC algorithms."
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16924 test "$pdump" = yes && echo " Using the new portable dumper."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16925 test "$debug" = yes && echo " Compiling in support for extra debugging code."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16926 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 777
diff changeset
16927 if test "$error_check_extents $error_check_types $error_check_text $error_check_gc $error_check_malloc $error_check_glyphs $error_check_byte_code $error_check_display $error_check_structures" \
831
5d09ddada9ae [xemacs-hg @ 2002-05-09 07:15:20 by ben]
ben
parents: 814
diff changeset
16928 != "no no no no no no no no no"; then
2131
646a9dd3e204 [xemacs-hg @ 2004-06-16 10:32:57 by stephent]
stephent
parents: 2079
diff changeset
16929 echo " Compiling in support for runtime error checking."
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16930 echo " WARNING: ---------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16931 echo " WARNING: XEmacs will run noticeably more slowly as a result."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16932 echo " WARNING: Error checking is on by default for XEmacs beta releases."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16933 echo " WARNING: ---------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16934 fi
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
16935 echo ""
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
16936 ) | tee -a Installation
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
16937 echo ""
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
16938
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
16939
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16940 # Remove any trailing slashes in these variables.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16941 test -n "$prefix" &&
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
16942 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16943 test -n "$exec_prefix" &&
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
16944 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16945
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16946
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16947 for file in $internal_makefile_list; do
1111
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
16948 case $file in
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
16949 src/Makefile.in ) file="src/Makefile.in:src/Makefile.in.in:src/depend" ;;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
16950 modules/* ) file="${file}:${file}.in:modules/common/Makefile.common" ;;
184461bc8de4 [xemacs-hg @ 2002-11-18 06:52:23 by ben]
ben
parents: 1070
diff changeset
16951 esac
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
16952 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16953 done
1633
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
16954 ac_output_files="$ac_output_files src/paths.h src/xemacs.def.in lib-src/config.values"
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
16955 test "$with_modules" = "yes" && ac_output_files="$ac_output_files lib-src/ellcc.h" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src/ellcc.h\" to \$ac_output_files"; fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16956
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16957 trap '' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16958
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16959 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16960
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16962 # Let make expand exec_prefix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16964
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16965 # Any assignment to VPATH causes Sun make to only execute
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16966 # the first set of double-colon rules, so remove it if not needed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16967 # If there is a colon in the path, we need to keep it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16968 if test "x$srcdir" = x.; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16969 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16970 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16971
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16972 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16973
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16974 DEFS=-DHAVE_CONFIG_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16975
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16976 # Without the "./", some shells look in PATH for config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16977 : ${CONFIG_STATUS=./config.status}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16978
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16979 echo creating $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16980 rm -f $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16981 cat > $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16982 #! /bin/sh
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16983 # Generated automatically by configure.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16984 # Run this file to recreate the current configuration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16985 # This directory was configured as follows,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16986 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16987 #
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16988 # $0 $ac_configure_args
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16989 #
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16990 # Compiler output produced by configure, useful for debugging
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16991 # configure, is in ./config.log if it exists.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16992
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16993 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16994 for ac_option
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16995 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16996 case "\$ac_option" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16997 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16998 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16999 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17000 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
17001 echo "$CONFIG_STATUS generated by autoconf version 2.13"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17002 exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17003 -help | --help | --hel | --he | --h)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17004 echo "\$ac_cs_usage"; exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17005 *) echo "\$ac_cs_usage"; exit 1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17006 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17007 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17008
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17009 ac_given_srcdir=$srcdir
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17010 ac_given_INSTALL="$INSTALL"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17011
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
17012 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17013 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17014 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17015
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17016 # Protect against being on the right side of a sed subst in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17017 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17018 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17019 $ac_vpsub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17020 $extrasub
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
17021 s%@SHELL@%$SHELL%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17022 s%@CFLAGS@%$CFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17023 s%@CPPFLAGS@%$CPPFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17024 s%@CXXFLAGS@%$CXXFLAGS%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
17025 s%@FFLAGS@%$FFLAGS%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17026 s%@DEFS@%$DEFS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17027 s%@LDFLAGS@%$LDFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17028 s%@LIBS@%$LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17029 s%@exec_prefix@%$exec_prefix%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17030 s%@prefix@%$prefix%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17031 s%@program_transform_name@%$program_transform_name%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17032 s%@bindir@%$bindir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17033 s%@sbindir@%$sbindir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17034 s%@libexecdir@%$libexecdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17035 s%@datadir@%$datadir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17036 s%@sysconfdir@%$sysconfdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17037 s%@sharedstatedir@%$sharedstatedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17038 s%@localstatedir@%$localstatedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17039 s%@libdir@%$libdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17040 s%@includedir@%$includedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17041 s%@oldincludedir@%$oldincludedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17042 s%@infodir@%$infodir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17043 s%@mandir@%$mandir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17044 s%@LN_S@%$LN_S%g
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
17045 s%@blddir@%$blddir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17046 s%@CC@%$CC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17047 s%@CPP@%$CPP%g
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
17048 s%@start_flags@%$start_flags%g
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17049 s%@ld_switch_shared@%$ld_switch_shared%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17050 s%@start_files@%$start_files%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17051 s%@ld@%$ld%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17052 s%@lib_gcc@%$lib_gcc%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17053 s%@RANLIB@%$RANLIB%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17054 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
17055 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17056 s%@INSTALL_DATA@%$INSTALL_DATA%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17057 s%@YACC@%$YACC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17058 s%@SET_MAKE@%$SET_MAKE%g
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
17059 s%@GTK_CONFIG@%$GTK_CONFIG%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17060 s%@X_CFLAGS@%$X_CFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17061 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17062 s%@X_LIBS@%$X_LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17063 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
17064 s%@install_pp@%$install_pp%g
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
17065 s%@libs_xauth@%$libs_xauth%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
17066 s%@dnd_objs@%$dnd_objs%g
1651
d3af5b868526 [xemacs-hg @ 2003-08-28 15:45:20 by james]
james
parents: 1633
diff changeset
17067 s%@LIBSTDCPP@%$LIBSTDCPP%g
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
17068 s%@dll_ld@%$dll_ld%g
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
17069 s%@dll_cflags@%$dll_cflags%g
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
17070 s%@dll_ldflags@%$dll_ldflags%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
17071 s%@dll_post@%$dll_post%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
17072 s%@dll_ldo@%$dll_ldo%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
17073 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
997
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
17074 s%@with_modules@%$with_modules%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
17075 s%@MOD_CC@%$MOD_CC%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
17076 s%@MODARCHDIR@%$MODARCHDIR%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
17077 s%@MAKE_DOCFILE@%$MAKE_DOCFILE%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
17078 s%@MODCFLAGS@%$MODCFLAGS%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
17079 s%@INSTALLPATH@%$INSTALLPATH%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
17080 s%@MOD_INSTALL_PROGRAM@%$MOD_INSTALL_PROGRAM%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
17081 s%@OBJECT_TO_BUILD@%$OBJECT_TO_BUILD%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
17082 s%@ldap_libs@%$ldap_libs%g
89cca5f594bd [xemacs-hg @ 2002-09-10 15:37:48 by james]
james
parents: 975
diff changeset
17083 s%@postgresql_libs@%$postgresql_libs%g
1470
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
17084 s%@lwlib_objs@%$lwlib_objs%g
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
17085 s%@ALLOCA@%$ALLOCA%g
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
17086 s%@have_esd_config@%$have_esd_config%g
1364f9716d7b [xemacs-hg @ 2003-05-10 02:57:05 by youngs]
youngs
parents: 1464
diff changeset
17087 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
17088 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17089 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17090 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
17091 s%@PROGNAME@%$PROGNAME%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17092 s%@version@%$version%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17093 s%@configuration@%$configuration%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17094 s%@canonical@%$canonical%g
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
17095 s%@inststaticdir@%$inststaticdir%g
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
17096 s%@instvardir@%$instvardir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17097 s%@srcdir@%$srcdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17098 s%@statedir@%$statedir%g
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
17099 s%@extra_includes@%$extra_includes%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
17100 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
17101 s%@PREFIX@%$PREFIX%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
17102 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
17103 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
17104 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
17105 s%@INFODIR@%$INFODIR%g
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
17106 s%@infopath@%$infopath%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
17107 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
17108 s%@INFOPATH@%$INFOPATH%g
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
17109 s%@package_path@%$package_path%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
17110 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
17111 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17112 s%@lispdir@%$lispdir%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
17113 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
17114 s%@LISPDIR@%$LISPDIR%g
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
17115 s%@moduledir@%$moduledir%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
17116 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
17117 s%@MODULEDIR@%$MODULEDIR%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
17118 s%@sitelispdir@%$sitelispdir%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
17119 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
17120 s%@SITELISPDIR@%$SITELISPDIR%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
17121 s%@sitemoduledir@%$sitemoduledir%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
17122 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
17123 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17124 s%@etcdir@%$etcdir%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
17125 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
17126 s%@ETCDIR@%$ETCDIR%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
17127 s%@docdir@%$docdir%g
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
17128 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
17129 s%@DOCDIR@%$DOCDIR%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17130 s%@archlibdir@%$archlibdir%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
17131 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
17132 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17133 s%@bitmapdir@%$bitmapdir%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17134 s%@extra_objs@%$extra_objs%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17135 s%@machfile@%$machfile%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17136 s%@opsysfile@%$opsysfile%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17137 s%@c_switch_general@%$c_switch_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17138 s%@c_switch_window_system@%$c_switch_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17139 s%@c_switch_all@%$c_switch_all%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17140 s%@ld_switch_general@%$ld_switch_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17141 s%@ld_switch_window_system@%$ld_switch_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17142 s%@ld_switch_all@%$ld_switch_all%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17143 s%@ld_libs_general@%$ld_libs_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17144 s%@ld_libs_window_system@%$ld_libs_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17145 s%@ld_libs_all@%$ld_libs_all%g
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
17146 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17147 s%@native_sound_lib@%$native_sound_lib%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17148 s%@sound_cflags@%$sound_cflags%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17149 s%@dynodump_arch@%$dynodump_arch%g
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17150 s%@XEMACS_CC@%$XEMACS_CC%g
1889
bf8be6575eae [xemacs-hg @ 2004-01-28 11:20:34 by stephent]
stephent
parents: 1871
diff changeset
17151 s%@XE_CFLAGS@%$XE_CFLAGS%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17152 s%@internal_makefile_list@%$internal_makefile_list%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17153
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17154 CEOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17155 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17156
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17157 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17158
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17159 # Split the substitutions into bite-sized pieces for seds with
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17160 # small command number limits, like on Digital OSF/1 and HP-UX.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17161 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17162 ac_file=1 # Number of current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17163 ac_beg=1 # First line for current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17164 ac_end=$ac_max_sed_cmds # Line after last line for current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17165 ac_more_lines=:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17166 ac_sed_cmds=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17167 while $ac_more_lines; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17168 if test $ac_beg -gt 1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17169 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17170 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17171 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17172 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17173 if test ! -s conftest.s$ac_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17174 ac_more_lines=false
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17175 rm -f conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17176 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17177 if test -z "$ac_sed_cmds"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17178 ac_sed_cmds="sed -f conftest.s$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17179 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17180 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17181 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17182 ac_file=`expr $ac_file + 1`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17183 ac_beg=$ac_end
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17184 ac_end=`expr $ac_end + $ac_max_sed_cmds`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17185 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17186 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17187 if test -z "$ac_sed_cmds"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17188 ac_sed_cmds=cat
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17189 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17190 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17191
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17192 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17193
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
17194 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17195 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17196 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17197 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17198 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17199 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17200 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17201 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17202 *) ac_file_in="${ac_file}.in" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17203 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17204
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17205 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17206
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17207 # Remove last slash and all that follows it. Not all systems have dirname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17208 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17209 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17210 # The file is in a subdirectory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17211 test ! -d "$ac_dir" && mkdir "$ac_dir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17212 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17213 # A "../" for each directory in $ac_dir_suffix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17214 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17215 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17216 ac_dir_suffix= ac_dots=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17217 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17218
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17219 case "$ac_given_srcdir" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17220 .) srcdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17221 if test -z "$ac_dots"; then top_srcdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17222 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17223 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17224 *) # Relative path.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17225 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17226 top_srcdir="$ac_dots$ac_given_srcdir" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17227 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17228
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17229 case "$ac_given_INSTALL" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17230 [/$]*) INSTALL="$ac_given_INSTALL" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17231 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17232 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17233
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17234 echo creating "$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17235 rm -f "$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17236 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17237 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17238 *Makefile*) ac_comsub="1i\\
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17239 # $configure_input" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17240 *) ac_comsub= ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17241 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17242
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17243 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17244 sed -e "$ac_comsub
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17245 s%@configure_input@%$configure_input%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17246 s%@srcdir@%$srcdir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17247 s%@top_srcdir@%$top_srcdir%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17248 s%@INSTALL@%$INSTALL%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17249 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17250 fi; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17251 rm -f conftest.s*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17252
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17253 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17254 # NAME is the cpp macro being defined and VALUE is the value it is being given.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17255 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17256 # ac_d sets the value in "#define NAME VALUE" lines.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17257 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17258 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17259 ac_dC='\3'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17260 ac_dD='%g'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17261 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17262 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17263 ac_uB='\([ ]\)%\1#\2define\3'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17264 ac_uC=' '
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17265 ac_uD='\4%g'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17266 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17267 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17268 ac_eB='$%\1#\2define\3'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17269 ac_eC=' '
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17270 ac_eD='%g'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17271
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17272 if test "${CONFIG_HEADERS+set}" != set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17273 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17274 cat >> $CONFIG_STATUS <<EOF
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
17275 CONFIG_HEADERS="src/config.h lwlib/config.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17276 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17277 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17278 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17279 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17280 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17281 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17282 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17283 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17284 *) ac_file_in="${ac_file}.in" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17285 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17286
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17287 echo creating $ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17288
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17289 rm -f conftest.frag conftest.in conftest.out
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17290 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17291 cat $ac_file_inputs > conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17292
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17293 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17294
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17295 # Transform confdefs.h into a sed script conftest.vals that substitutes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17296 # the proper values into config.h.in to produce config.h. And first:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17297 # Protect against being on the right side of a sed subst in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17298 # Protect against being in an unquoted here document in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17299 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17300 cat > conftest.hdr <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17301 s/[\\&%]/\\&/g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17302 s%[\\$`]%\\&%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17303 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17304 s%ac_d%ac_u%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17305 s%ac_u%ac_e%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17306 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17307 sed -n -f conftest.hdr confdefs.h > conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17308 rm -f conftest.hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17309
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17310 # This sed command replaces #undef with comments. This is necessary, for
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17311 # example, in the case of _POSIX_SOURCE, which is predefined and required
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17312 # on some systems where configure will not decide to define it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17313 cat >> conftest.vals <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17314 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17315 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17316
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17317 # Break up conftest.vals because some shells have a limit on
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17318 # the size of here documents, and old seds have small limits too.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17319
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17320 rm -f conftest.tail
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17321 while :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17322 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17323 ac_lines=`grep -c . conftest.vals`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17324 # grep -c gives empty output for an empty file on some AIX systems.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17325 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17326 # Write a limited-size here document to conftest.frag.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17327 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17328 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17329 echo 'CEOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17330 sed -f conftest.frag conftest.in > conftest.out
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17331 rm -f conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17332 mv conftest.out conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17333 ' >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17334 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17335 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17336 mv conftest.tail conftest.vals
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17337 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17338 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17339
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17340 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17341 rm -f conftest.frag conftest.h
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17342 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17343 cat conftest.in >> conftest.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17344 rm -f conftest.in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17345 if cmp -s $ac_file conftest.h 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17346 echo "$ac_file is unchanged"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17347 rm -f conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17348 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17349 # Remove last slash and all that follows it. Not all systems have dirname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17350 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17351 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17352 # The file is in a subdirectory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17353 test ! -d "$ac_dir" && mkdir "$ac_dir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17354 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17355 rm -f $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17356 mv conftest.h $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17357 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17358 fi; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17359
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17360 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17361 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17362 CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17363 top_srcdir="$srcdir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17364 MAKE_SUBDIR="$MAKE_SUBDIR"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17365
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17366 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17367 cat >> $CONFIG_STATUS <<\EOF
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17368 for dir in . $MAKE_SUBDIR; do
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
17369 (
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17370 cd $dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17371 rm -f junk.c
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17372 < Makefile.in \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
17373 sed -e '/^# Generated/d' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17374 -e 's%/\*\*/#.*%%' \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
17375 -e 's/^ *# */#/' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17376 -e '/^##/d' \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17377 -e '/^#/ {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17378 p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17379 d
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17380 }' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17381 -e '/./ {
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17382 s/\([\"]\)/\\\1/g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17383 s/^/"/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17384 s/$/"/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17385 }' > junk.c;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17386
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17387
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17388
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17389 echo creating $dir/Makefile
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17390 $CPP -I. -I${top_srcdir}/src junk.c \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17391 | sed -e 's/^\#.*//' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17392 -e 's/^[ ][ ]*$//'\
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17393 -e 's/^ / /' \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
17394 -e '/^[ ]*$/d' \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
17395 -e '/^\"/ {
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17396 s/\\\([\"]\)/\1/g
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17397 s/^[ ]*\"//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17398 s/\"[ ]*$//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17399 }' > Makefile.new
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17400 chmod 444 Makefile.new
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17401 mv -f Makefile.new Makefile
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17402
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17403 echo creating $dir/GNUmakefile
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17404 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17405 | sed -e 's/^\#.*//' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17406 -e 's/^[ ][ ]*$//'\
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17407 -e 's/^ / /' \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
17408 -e '/^[ ]*$/d' \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
17409 -e '/^\"/ {
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17410 s/\\\([\"]\)/\1/g
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17411 s/^[ ]*\"//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17412 s/\"[ ]*$//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17413 }' > Makefile.new
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17414 chmod 444 Makefile.new
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17415 mv -f Makefile.new GNUmakefile
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17416
1988
3432736e50ad [xemacs-hg @ 2004-04-06 18:08:14 by james]
james
parents: 1984
diff changeset
17417 if test -r "xemacs.def.in"; then
1633
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17418 cp -f xemacs.def.in junk.c
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17419 echo creating $dir/xemacs.def
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17420 $CPP -I. -I${top_srcdir}/src junk.c \
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17421 | sed -e 's/^\#.*//' \
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17422 -e 's/^[ ][ ]*$//'\
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17423 -e 's/^ / /' \
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17424 -e '/^[ ]*$/d' \
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17425 -e '/^\"/ {
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17426 s/\\\([\"]\)/\1/g
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17427 s/^[ ]*\"//
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17428 s/\"[ ]*$//
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17429 }' > Makefile.new
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17430 chmod 444 Makefile.new
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17431 mv -f Makefile.new xemacs.def
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17432
baca156a450b [xemacs-hg @ 2003-08-19 02:11:46 by james]
james
parents: 1491
diff changeset
17433 fi
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17434 rm -f junk.c
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
17435 )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17436 done
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17437
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
17438 sed < config.status >> lib-src/config.values \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
17439 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
17440 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
17441 -e 's/^\([^ ]*\) $/\1 ""/' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
17442 -e 's/ 1$/ t/'
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
17443
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
17444
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17445 exit 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17446 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17447 chmod +x $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17448 rm -fr confdefs* $ac_clean_files
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
17449 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1