mirror of
https://github.com/postgres/postgres.git
synced 2026-04-01 07:16:24 -04:00
13 lines
312 B
Bash
Executable file
13 lines
312 B
Bash
Executable file
#!/bin/sh
|
|
trap "/bin/rm -f /tmp/$$.*" 0 1 2 3 15
|
|
cd /tmp
|
|
/bin/cat >$$.c <<EOF
|
|
extern int foo;
|
|
EOF
|
|
for i in `cc -v -c $$.c 2>&1`
|
|
do
|
|
case "$i" in
|
|
-D*) echo "$i" | /usr/bin/sed 's/^-D//';;
|
|
-A*) /bin/test "2.7.2.1" && echo "$i" | /usr/bin/sed 's/^-A\(.*\)(\(.*\))/\1=\2/';;
|
|
esac
|
|
done
|