File: config.status

package info (click to toggle)
meschach 1.2b-6
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,272 kB
  • ctags: 1,757
  • sloc: ansic: 21,958; makefile: 509; sh: 11
file content (170 lines) | stat: -rw-r--r-- 6,273 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
#!/bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host homey:
#
# ./configure dummy ranlib

for arg
do
  case "$arg" in
    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    exec /bin/sh ./configure dummy ranlib ;;
    *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  esac
done

trap 'rm -f makefile machine.h conftest*; exit 1' 1 3 15
PROGS=''
CC='cc'
CPP='${CC-cc} -E'
RANLIB='ranlib'
LIBS=' -lm'
srcdir='.'
prefix=''
exec_prefix=''
prsub=''

top_srcdir=$srcdir

# Allow make-time overrides of the generated file list.
test -n "$gen_files" || gen_files="makefile"

for file in .. $gen_files; do if [ "x$file" != "x.." ]; then
  srcdir=$top_srcdir
  # Remove last slash and all that follows it.  Not all systems have dirname.
  dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  if test "$dir" != "$file"; then
    test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
    test ! -d $dir && mkdir $dir
  fi
  echo creating $file
  rm -f $file
  echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  sed -e "
$prsub
s%@PROGS@%$PROGS%g
s%@CC@%$CC%g
s%@CPP@%$CPP%g
s%@RANLIB@%$RANLIB%g
s%@LIBS@%$LIBS%g
s%@srcdir@%$srcdir%g
s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
fi; done
test -n "$gen_config" || gen_config=machine.h
echo creating $gen_config
# These sed commands are put into SEDDEFS when defining a macro.
# They are broken into pieces to make the sed script easier to manage.
# They are passed to sed as "A NAME B NAME C VALUE D", where NAME
# is the cpp macro being defined and VALUE is the value it is being given.
# Each defining turns into a single global substitution command.
#
# SEDd sets the value in "#define NAME VALUE" lines.
SEDdA='s@^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
SEDdB='\([ 	][ 	]*\)[^ 	]*@\1#\2'
SEDdC='\3'
SEDdD='@g'
# SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
SEDuA='s@^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
SEDuB='\([ 	]\)@\1#\2define\3'
SEDuC=' '
SEDuD='\4@g'
# SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
SEDeA='s@^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
SEDeB='$@\1#\2define\3'
SEDeC=' '
SEDeD='@g'
rm -f conftest.sed
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_MEMORY_H${SEDdB}HAVE_MEMORY_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_MEMORY_H${SEDuB}HAVE_MEMORY_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_MEMORY_H${SEDeB}HAVE_MEMORY_H${SEDeC}1${SEDeD}
${SEDdA}STDC_HEADERS${SEDdB}STDC_HEADERS${SEDdC}1${SEDdD}
${SEDuA}STDC_HEADERS${SEDuB}STDC_HEADERS${SEDuC}1${SEDuD}
${SEDeA}STDC_HEADERS${SEDeB}STDC_HEADERS${SEDeC}1${SEDeD}
${SEDdA}HAVE_MALLOC_H${SEDdB}HAVE_MALLOC_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_MALLOC_H${SEDuB}HAVE_MALLOC_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_MALLOC_H${SEDeB}HAVE_MALLOC_H${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}VARARGS${SEDdB}VARARGS${SEDdC}1${SEDdD}
${SEDuA}VARARGS${SEDuB}VARARGS${SEDuC}1${SEDuD}
${SEDeA}VARARGS${SEDeB}VARARGS${SEDeC}1${SEDeD}
${SEDdA}NOT_SEGMENTED${SEDdB}NOT_SEGMENTED${SEDdC}1${SEDdD}
${SEDuA}NOT_SEGMENTED${SEDuB}NOT_SEGMENTED${SEDuC}1${SEDuD}
${SEDeA}NOT_SEGMENTED${SEDeB}NOT_SEGMENTED${SEDeC}1${SEDeD}
${SEDdA}COMPLEX${SEDdB}COMPLEX${SEDdC}1${SEDdD}
${SEDuA}COMPLEX${SEDuB}COMPLEX${SEDuC}1${SEDuD}
${SEDeA}COMPLEX${SEDeB}COMPLEX${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}SPARSE${SEDdB}SPARSE${SEDdC}1${SEDdD}
${SEDuA}SPARSE${SEDuB}SPARSE${SEDuC}1${SEDuD}
${SEDeA}SPARSE${SEDeB}SPARSE${SEDeC}1${SEDeD}
${SEDdA}U_INT_DEF${SEDdB}U_INT_DEF${SEDdC}1${SEDdD}
${SEDuA}U_INT_DEF${SEDuB}U_INT_DEF${SEDuC}1${SEDuD}
${SEDeA}U_INT_DEF${SEDeB}U_INT_DEF${SEDeC}1${SEDeD}
${SEDdA}D_MACHEPS${SEDdB}D_MACHEPS${SEDdC}2.22045e-16${SEDdD}
${SEDuA}D_MACHEPS${SEDuB}D_MACHEPS${SEDuC}2.22045e-16${SEDuD}
${SEDeA}D_MACHEPS${SEDeB}D_MACHEPS${SEDeC}2.22045e-16${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}F_MACHEPS${SEDdB}F_MACHEPS${SEDdC}1.19209e-07${SEDdD}
${SEDuA}F_MACHEPS${SEDuB}F_MACHEPS${SEDuC}1.19209e-07${SEDuD}
${SEDeA}F_MACHEPS${SEDeB}F_MACHEPS${SEDeC}1.19209e-07${SEDeD}
${SEDdA}M_MAX_INT${SEDdB}M_MAX_INT${SEDdC}2147483647${SEDdD}
${SEDuA}M_MAX_INT${SEDuB}M_MAX_INT${SEDuC}2147483647${SEDuD}
${SEDeA}M_MAX_INT${SEDeB}M_MAX_INT${SEDeC}2147483647${SEDeD}
${SEDdA}CHAR0ISDBL0${SEDdB}CHAR0ISDBL0${SEDdC}1${SEDdD}
${SEDuA}CHAR0ISDBL0${SEDuB}CHAR0ISDBL0${SEDuC}1${SEDuD}
${SEDeA}CHAR0ISDBL0${SEDeB}CHAR0ISDBL0${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_BCOPY${SEDdB}HAVE_BCOPY${SEDdC}1${SEDdD}
${SEDuA}HAVE_BCOPY${SEDuB}HAVE_BCOPY${SEDuC}1${SEDuD}
${SEDeA}HAVE_BCOPY${SEDeB}HAVE_BCOPY${SEDeC}1${SEDeD}
${SEDdA}HAVE_BZERO${SEDdB}HAVE_BZERO${SEDdC}1${SEDdD}
${SEDuA}HAVE_BZERO${SEDuB}HAVE_BZERO${SEDuC}1${SEDuD}
${SEDeA}HAVE_BZERO${SEDeB}HAVE_BZERO${SEDeC}1${SEDeD}
${SEDdA}HAVE_PROTOTYPES${SEDdB}HAVE_PROTOTYPES${SEDdC}1${SEDdD}
${SEDuA}HAVE_PROTOTYPES${SEDuB}HAVE_PROTOTYPES${SEDuC}1${SEDuD}
${SEDeA}HAVE_PROTOTYPES${SEDeB}HAVE_PROTOTYPES${SEDeC}1${SEDeD}
CONFEOF
# This sed command replaces #undef's with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it in
# machine.h.
cat >> conftest.sed <<\CONFEOF
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
CONFEOF
rm -f conftest.h
# Break up the sed commands because old seds have small limits.
maxsedlines=20
cp $top_srcdir/$gen_config.in conftest.h1
while :
do
  lines=`grep -c . conftest.sed`
  if test -z "$lines" || test "$lines" -eq 0; then break; fi
  rm -f conftest.s1 conftest.s2 conftest.h2
  sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  sed -f conftest.s1 < conftest.h1 > conftest.h2
  rm -f conftest.s1 conftest.h1 conftest.sed
  mv conftest.h2 conftest.h1
  mv conftest.s2 conftest.sed
done
rm -f conftest.sed conftest.h
echo "/* $gen_config.  Generated automatically by configure.  */" > conftest.h
cat conftest.h1 >> conftest.h
rm -f conftest.h1
if cmp -s $gen_config conftest.h 2>/dev/null; then
  # The file exists and we would not be changing it.
  rm -f conftest.h
else
  rm -f $gen_config
  mv conftest.h $gen_config
fi


exit 0