Lines Matching refs:CC
12 # prefix=$HOME CC=cc CFLAGS="-O4" ./configure
14 # (setenv prefix $HOME; setenv CC cc; setenv CFLAGS "-O4"; ./configure)
17 # Incorrect settings of CC or CFLAGS may prevent creating a shared library.
18 # If you have problems, try without defining CC and CFLAGS before reporting
36 old_cc="$CC"
66 test -z "$CC" && echo Checking for gcc...
67 cc=${CC-gcc}
70 case "$cc" in
74 if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
75 CC="$cc"
79 Linux | linux | GNU | GNU/*) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1"};;
84 LDSHARED=${LDSHARED-"$cc -shared -Wl,-hlibz.so.1"};;
86 LDSHARED=${LDSHARED-"$cc -shared $SFLAGS"}
99 LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER"};;
100 *) LDSHARED=${LDSHARED-"$cc -shared"};;
103 # find system name and corresponding cc options
104 CC=${CC-cc}
120 LDSHARED=${LDSHARED-"cc -shared"};;
123 LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so -Wl,-msym -Wl,-rpath,$(libdir) -Wl,-set_version,${VER}:1.0"};;
126 LDSHARED=${LDSHARED-"cc -shared"};;
129 LDSHARED=${LDSHARED-"cc"}
131 AR="cc -A";;
134 LDSHARED=${LDSHARED-"cc -dy -KPIC -G"};;
137 LDSHARED=${LDSHARED-"cc -G"};;
143 LDSHARED=${LDSHARED-"cc -xarch=v9b"};;
147 LDSHARED=${LDSHARED-"cc -G"};;
151 LDSHARED=${LDSHARED-"cc -G"};;
155 LDSHARED=${LDSHARED-"cc -G"};;
163 LDSHARED=${LDSHARED-"cc -shared"};;
173 # we must test in two steps (cc then ld), required at least on SunOS 4.x
174 if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
178 echo Building shared library $SHAREDLIBV with $CC.
183 echo 'No shared library support; try without defining CC and CFLAGS'
188 LDSHARED="$CC"
189 echo Building static library $LIBS version $VER with $CC.
198 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
221 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
245 if test "`($CC $CFLAGS -o $test $test.c) 2>&1`" = ""; then
270 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
308 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
338 if test "`($CC $CFLAGS -o $test $test.c) 2>&1`" = ""; then
357 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
389 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
405 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
420 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
427 CPP=${CPP-"$CC -E"}
442 /^CC *=/s#=.*#=$CC#