File: libc-so-name.m4

package info (click to toggle)
gnu-smalltalk 3.1-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 33,300 kB
  • ctags: 13,999
  • sloc: ansic: 88,106; sh: 23,223; asm: 7,889; perl: 4,493; cpp: 3,539; awk: 1,483; yacc: 1,355; xml: 1,272; makefile: 1,192; lex: 843; sed: 258; objc: 124
file content (24 lines) | stat: -rw-r--r-- 1,024 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# libc-so-name.m4 serial 1
dnl Copyright (C) 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License.  As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
dnl that contains a configuration script generated by Autoconf, under
dnl the same distribution terms as the rest of that program.

dnl Sets the variables LIBC_SO_NAME and LIBC_SO_DIR to the directory
dnl and basename for the C library.
AC_DEFUN([GST_LIBC_SO_NAME],
[AC_CACHE_CHECK([how to dlopen the C library], gst_cv_libc_so_name, [
  for i in /shlib/libc.so /lib*/libc.so* /usr/lib/libc.so.* /usr/lib/libc.sl /lib/libc-*.so \
	   /System/Library/Frameworks/System.framework/System /usr/lib/libSystem.dylib; do
    if test -f $i; then
      gst_cv_libc_so_name=$i
      break
    fi
  done])
LIBC_SO_NAME=`basename $gst_cv_libc_so_name`
LIBC_SO_DIR=`dirname $gst_cv_libc_so_name`
AC_SUBST(LIBC_SO_NAME)
AC_SUBST(LIBC_SO_DIR)
])