201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
|
CFLAGS="${save_cflags} -fPIC"
else
CFLAGS="${save_cflags}"
fi
export CFLAGS
if [ "${isshared}" = '0' ]; then
sed 's@USE_TCL_STUBS@XXX_TCL_STUBS@g' configure > configure.new
pkg_configure_shared_build='0'
else
sed 's@XXX_TCL_STUBS@USE_TCL_STUBS@g' configure > configure.new
pkg_configure_shared_build='1'
fi
cat configure.new > configure
rm -f configure.new
./configure $tryopt --prefix="${installdir}" --exec-prefix="${installdir}" --libdir="${installdir}/lib" --with-tcl="${TCLCONFIGDIR}" "${configure_extra[@]}" ${CONFIGUREEXTRA} && break
done
return 0
}
|
<
<
<
<
>
>
>
>
>
>
>
>
>
>
>
|
|
>
|
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
|
CFLAGS="${save_cflags} -fPIC"
else
CFLAGS="${save_cflags}"
fi
export CFLAGS
if [ "${isshared}" = '0' ]; then
pkg_configure_shared_build='0'
else
pkg_configure_shared_build='1'
fi
if [ "${isshared}" = '0' ]; then
tryopt="${tryopt} --disable-stubs --enable-static"
fi
if ! grep '[-]-disable-stubs' configure >/dev/null 2>/dev/null; then
if [ "${isshared}" = '0' ]; then
sed 's@USE_TCL_STUBS@XXX_TCL_STUBS@g' configure > configure.new
else
sed 's@XXX_TCL_STUBS@USE_TCL_STUBS@g' configure > configure.new
fi
cat configure.new > configure
rm -f configure.new
fi
./configure $tryopt --prefix="${installdir}" --exec-prefix="${installdir}" --libdir="${installdir}/lib" --with-tcl="${TCLCONFIGDIR}" "${configure_extra[@]}" ${CONFIGUREEXTRA} && break
done
return 0
}
|