Revision a8721c09

View differences:

configure
68 68
extralibs="-lm"
69 69
simpleidct="yes"
70 70
bigendian="no"
71
vhook="no"
71
vhook="default"
72 72
dlfcn="no"
73 73
dlopen="no"
74 74
mpegaudio_hp="yes"
......
238 238
    source_path_used="no"
239 239
fi
240 240

  
241
cat > $TMPC << EOF
242
#include <dlfcn.h>
243
int main( void ) { return (int) dlopen("foo", 0); }
244
EOF
245

  
246
ldl=-ldl
247

  
248
if $cc -o $TMPE $TMPC -ldl 2> /dev/null  ; then
249
vhook=yes
250
dlfcn=yes
251
dlopen=yes
252
fi
253

  
254
if $cc -o $TMPE $TMPC 2> /dev/null  ; then
255
vhook=yes
256
dlfcn=yes
257
dlopen=yes
258
ldl=""
259
fi
260

  
261
cat > $TMPC << EOF
262
int main( void ) { return (int) dlopen("foo", 0); }
263
EOF
264

  
265
if $cc -o $TMPE $TMPC -ldl 2> /dev/null  ; then
266
vhook=yes
267
dlopen=yes
268
fi
269

  
270
if $cc -o $TMPE $TMPC 2> /dev/null  ; then
271
vhook=yes
272
dlopen=yes
273
ldl=""
274
fi
275

  
276

  
277
cat > $TMPC << EOF
278
#include <X11/Xlib.h>
279
#include <Imlib2.h>
280
int main( void ) { return (int) imlib_load_font("foo"); }
281
EOF
282

  
283
imlib2=no
284
if $cc -o $TMPE $TMPC -lImlib2 2> /dev/null  ; then
285
imlib2=yes
286
fi
287

  
288 241
for opt do
289 242
  case "$opt" in
290 243
  --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
......
545 498
  builtin_vector=yes
546 499
fi
547 500

  
501
# dlopen/dlfcn.h probing
502

  
503
cat > $TMPC << EOF
504
#include <dlfcn.h>
505
int main( void ) { return (int) dlopen("foo", 0); }
506
EOF
507

  
508
ldl=-ldl
509

  
510
if $cc -o $TMPE $TMPC -ldl 2> /dev/null  ; then
511
dlfcn=yes
512
dlopen=yes
513
fi
514

  
515
if $cc -o $TMPE $TMPC 2> /dev/null  ; then
516
dlfcn=yes
517
dlopen=yes
518
ldl=""
519
fi
520

  
521
cat > $TMPC << EOF
522
int main( void ) { return (int) dlopen("foo", 0); }
523
EOF
524

  
525
if $cc -o $TMPE $TMPC -ldl 2> /dev/null  ; then
526
dlopen=yes
527
fi
528

  
529
if $cc -o $TMPE $TMPC 2> /dev/null  ; then
530
dlopen=yes
531
ldl=""
532
fi
533

  
534
if test "$vhook" = "default" ; then
535
  vhook="$dlopen"
536
fi
537

  
538
cat > $TMPC << EOF
539
#include <X11/Xlib.h>
540
#include <Imlib2.h>
541
int main( void ) { return (int) imlib_load_font("foo"); }
542
EOF
543

  
544
imlib2=no
545
if $cc -o $TMPE $TMPC -lImlib2 2> /dev/null  ; then
546
imlib2=yes
547
fi
548

  
548 549
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
549 550
cat << EOF
550 551

  

Also available in: Unified diff