Permalink
Browse files

added support for --cc to output the compiler name. This makes it pos…

…sible

to compile libcurl stuff without any prior knowledge:

cc=`curl-config --cc`
cflags=`curl-config --cflags`
libs=`curl-config --libs`

$cc $flags $libs -o example example.c

Or if you prefer, the oh-so-cool single-line version:

`curl-config --cc --cflags --libs` -o example example.c
  • Loading branch information...
1 parent ea811fe commit 6e9d1617c665dd49b2e46979e59b76363b89ecf3 @bagder bagder committed Jan 16, 2002
Showing with 5 additions and 0 deletions.
  1. +5 −0 curl-config.in
View
@@ -16,6 +16,7 @@ Usage: curl-config [OPTION]
Available values for OPTION include:
+ --cc compiler
--cflags pre-processor and compiler flags
--feature newline separated list of enabled features
--help display this help and exit
@@ -42,6 +43,10 @@ while test $# -gt 0; do
esac
case "$1" in
+ --cc)
+ echo @CC@
+ ;;
+
--prefix)
echo $prefix
;;

0 comments on commit 6e9d161

Please sign in to comment.