src/test/resources/golden-sample/configure2

changeset 40
b42bfc9e9983
parent 39
3ca85da78515
child 46
096f3105b3b1
equal deleted inserted replaced
39:3ca85da78515 40:b42bfc9e9983
310 done 310 done
311 311
312 echo no 312 echo no
313 return 1 313 return 1
314 } 314 }
315 dependency_gtk2()
316 {
317 printf "checking for gtk2... "
318 # dependency gtk2
319 while true
320 do
321 if [ -z "$PKG_CONFIG" ]; then
322 break
323 fi
324 $PKG_CONFIG gtk+-2.0
325 if [ $? -ne 0 ] ; then
326 break
327 fi
328 TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags gtk+-2.0`"
329 TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs gtk+-2.0`"
330 echo yes
331 return 0
332 done
333
334 echo no
335 return 1
336 }
337 dependency_sqlite()
338 {
339 printf "checking for sqlite... "
340 # dependency sqlite
341 while true
342 do
343 if [ -z "$PKG_CONFIG" ]; then
344 break
345 fi
346 $PKG_CONFIG sqlite3
347 if [ $? -ne 0 ] ; then
348 break
349 fi
350 TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags sqlite3`"
351 TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs sqlite3`"
352 echo yes
353 return 0
354 done
355
356 echo no
357 return 1
358 }
315 dependency_test() 359 dependency_test()
316 { 360 {
317 printf "checking for test... " 361 printf "checking for test... "
318 # dependency test platform="bsd" 362 # dependency test platform="bsd"
319 while true 363 while true
331 375
332 # dependency test 376 # dependency test
333 while true 377 while true
334 do 378 do
335 TEMP_CFLAGS="$TEMP_CFLAGS -DTEST" 379 TEMP_CFLAGS="$TEMP_CFLAGS -DTEST"
336 echo yes
337 return 0
338 done
339
340 echo no
341 return 1
342 }
343 dependency_sqlite()
344 {
345 printf "checking for sqlite... "
346 # dependency sqlite
347 while true
348 do
349 if [ -z "$PKG_CONFIG" ]; then
350 break
351 fi
352 $PKG_CONFIG sqlite3
353 if [ $? -ne 0 ] ; then
354 break
355 fi
356 TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags sqlite3`"
357 TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs sqlite3`"
358 echo yes
359 return 0
360 done
361
362 echo no
363 return 1
364 }
365 dependency_gtk2()
366 {
367 printf "checking for gtk2... "
368 # dependency gtk2
369 while true
370 do
371 if [ -z "$PKG_CONFIG" ]; then
372 break
373 fi
374 $PKG_CONFIG gtk+-2.0
375 if [ $? -ne 0 ] ; then
376 break
377 fi
378 TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags gtk+-2.0`"
379 TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs gtk+-2.0`"
380 echo yes 380 echo yes
381 return 0 381 return 0
382 done 382 done
383 383
384 echo no 384 echo no

mercurial