File: libc-so-name.m4

package info (click to toggle)
gnu-smalltalk 3.0.3-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 26,460 kB
  • ctags: 13,326
  • sloc: ansic: 82,059; sh: 22,788; asm: 7,846; perl: 4,493; cpp: 3,517; awk: 1,471; yacc: 1,355; makefile: 1,151; xml: 886; lex: 843; sed: 258
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)
])