20 lines
456 B
Plaintext
20 lines
456 B
Plaintext
|
#!/bin/sh
|
||
|
#
|
||
|
# Bootstrap script: it tries to compile a simple C script using cc or
|
||
|
# gcc and launches it to create config.h and config.make files.
|
||
|
#
|
||
|
|
||
|
echo "configuring qfits..."
|
||
|
|
||
|
if (cc -o sysconf sysconf.c 2> /dev/null) ; then
|
||
|
echo "compiled sysconf successfully"
|
||
|
elif (gcc -o sysconf sysconf.c 2> /dev/null) ; then
|
||
|
echo "compiled sysconf successfully"
|
||
|
else echo "cannot find cc or gcc: aborting" ; exit
|
||
|
fi
|
||
|
./sysconf $*
|
||
|
mv config.h ./src
|
||
|
rm -f sysconf
|
||
|
|
||
|
|