autoconf 와 automake

scoh98의 이미지

이번에 새로 autoconf 와 automake 를 써 보려하는데

./automake 실행시 다음과 같이 에러가 납니다.

/usr/bin/automake: `--output-dir' is deprecated

그래도 그냥 무시하고

./configure 를 쳤더니 여러 no 항목이 걸리네요. 그런데 제가 pthread 를 쓰거든요.

아래와 같이 -lpthread 가 no 로 나옵니다. 그냥 코멘트 창에서 g++ xxx.cpp -lpthread 하면 컴파일 잘 되는데 말이죠.
이상하네요...
어떻게 하면 되나요?

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... (cached) gawk
checking for pthread_create in -lpthread... no

익명 사용자의 이미지

pthread_create 함수를 테스트 해보세요.

ssehoony의 이미지

deprecated 는 예전에 사용했지만 이제 사용하지 않는 쪽이 좋다. 혹은 사용하지 마라 정도로 생각하시면 됩니다.
보통 저런것들은 대신 할 다른 것을 준비해 둡니다. 비슷한 역할을 하는 다른 것을 찾아보세요.
지금은 호환을 위해 지원해 주더라도 추후 버전이 올라가면 완전히 사라질 수도 있므로 수정해 주는 것이 좋습니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.