File: config.inc

package info (click to toggle)
libkqueue 0.9.2-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 508 kB
  • ctags: 614
  • sloc: ansic: 5,418; sh: 258; makefile: 202; perl: 22
file content (27 lines) | stat: -rwxr-xr-x 744 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

program=libkqueue-test
version=0.1
cflags="-g -O0 -rdynamic -Wall -Werror"
sources="main.c kevent.c test.c proc.c read.c signal.c timer.c vnode.c"

pre_configure_hook() {
 
  check_header "err.h"
  check_header "sys/event.h" \
      && sys_event_h="sys/event.h" \
      || {
            sys_event_h="../include/sys/event.h"
            cflags="$cflags -I../include"
            ldadd="$ldadd ../libkqueue.a -lpthread -lrt"
         }

  test "$target" = "solaris" && ldadd="$ldadd -lsocket"

  check_symbol $sys_event_h EV_DISPATCH
  check_symbol $sys_event_h EV_RECEIPT
  check_symbol $sys_event_h NOTE_TRUNCATE 
  check_symbol $sys_event_h EVFILT_TIMER
  check_symbol $sys_event_h EVFILT_USER && \
     sources="$sources user.c"
}