test/configure

changeset 105
4b3e655339cb
parent 103
01ec9f32835e
child 106
7aa59deee50c
equal deleted inserted replaced
104:ea36fd802446 105:4b3e655339cb
174 : ${PLATFORM:="unix"} 174 : ${PLATFORM:="unix"}
175 175
176 PLATFORM_NAME=`echo "$PLATFORM" | cut -f1 -d' ' -` 176 PLATFORM_NAME=`echo "$PLATFORM" | cut -f1 -d' ' -`
177 echo "$PLATFORM_NAME" 177 echo "$PLATFORM_NAME"
178 178
179 TOOLCHAIN=
180
181 isplatform() 179 isplatform()
182 { 180 {
183 for p in $PLATFORM 181 for p in $PLATFORM
184 do 182 do
185 if [ "$p" = "$1" ]; then 183 if [ "$p" = "$1" ]; then
257 lang_cpp=1 255 lang_cpp=1
258 fi 256 fi
259 if detect_c_compiler ; then 257 if detect_c_compiler ; then
260 lang_c=1 258 lang_c=1
261 fi 259 fi
262 TOOLCHAIN=$TOOLCHAIN_NAME
263 260
264 # create buffer for make variables required by dependencies 261 # create buffer for make variables required by dependencies
265 echo > "$TEMP_DIR/make.mk" 262 echo > "$TEMP_DIR/make.mk"
266 263
267 test_pkg_config() 264 test_pkg_config()
328 return 0 325 return 0
329 } 326 }
330 dependency_error_openssl() 327 dependency_error_openssl()
331 { 328 {
332 print_check_msg "$dep_checked_openssl" "checking for openssl... " 329 print_check_msg "$dep_checked_openssl" "checking for openssl... "
333 # dependency openssl toolchain="clang" 330 # dependency openssl
334 while true 331 while true
335 do 332 do
336 if notistoolchain "clang"; then
337 break
338 fi
339 if [ -z "$lang_c" ] ; then 333 if [ -z "$lang_c" ] ; then
340 break 334 break
341 fi 335 fi
342 if [ -z "$PKG_CONFIG" ]; then 336 if [ -z "$PKG_CONFIG" ]; then
343 break 337 break
458 done 452 done
459 break 453 break
460 done 454 done
461 while true 455 while true
462 do 456 do
463 if notistoolchain "gcc"; then
464 break
465 fi
466 while true 457 while true
467 do 458 do
468 459
469 TEMP_CFLAGS="$TEMP_CFLAGS -DTOOLCHAIN_GCC" 460 TEMP_CFLAGS="$TEMP_CFLAGS -DTOOLCHAIN_GCC"
470 break 461 break
471 done 462 done
472 break 463 break
473 done 464 done
474 while true 465 while true
475 do 466 do
476 if notistoolchain "clang"; then
477 break
478 fi
479 while true 467 while true
480 do 468 do
481 469
482 TEMP_CFLAGS="$TEMP_CFLAGS -DTOOLCHAIN_CLANG" 470 TEMP_CFLAGS="$TEMP_CFLAGS -DTOOLCHAIN_CLANG"
483 break 471 break

mercurial